From 701d6674085af2577b2f4b6a52e44058f016e980 Mon Sep 17 00:00:00 2001 From: Qfwfq Date: Mon, 14 May 2018 21:54:49 -0700 Subject: [PATCH] Update resourceDatabase.cpp Comparison between char '/0' and pointer to char lowerSearchString requires dereferencing --- gameSource/resourceDatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameSource/resourceDatabase.cpp b/gameSource/resourceDatabase.cpp index 717c943..ec2661f 100644 --- a/gameSource/resourceDatabase.cpp +++ b/gameSource/resourceDatabase.cpp @@ -610,7 +610,7 @@ int getSearchResults( const char *inResourceType, char *lowerSearchString = stringToLowerCase( inSearchString ); - if( lowerSearchString == '\0' ) { + if( *lowerSearchString == '\0' ) { // empty search, consider everything numGotten = t->getMatches( lowerSearchString, inNumToSkip, inNumToGet, (void **)values );