Fixed char comparision

Fixed char comparision
pull/1646/head
rickomax 2017-12-18 19:18:11 -02:00
parent 987d315089
commit 9c9e7a2e82
1 changed files with 2 additions and 2 deletions

View File

@ -369,10 +369,10 @@ struct aiScene
//! Returns a short filename from a full path
static const char* GetShortFilename(const char* filename) {
const char* lastSlash = strrchr(filename, '/');
if (lastSlash == '\0') {
if (lastSlash == nullptr) {
lastSlash = strrchr(filename, '\\');
}
const char* shortFilename = lastSlash != '\0' ? lastSlash + 1 : filename;
const char* shortFilename = lastSlash != nullptr ? lastSlash + 1 : filename;
return shortFilename;
}