Fix return FindKeyIndex

replace 'return NULL' to 'return 0', FindKeyIndex should return a int.

Signed-off-by: XoD <xoddark@gmail.com>
This commit is contained in:
XoD
2011-12-23 17:47:57 +01:00
parent 0b48f6f24a
commit a95464d419

View File

@@ -475,7 +475,7 @@ int idDict::FindKeyIndex( const char *key ) const {
if ( key == NULL || key[0] == '\0' ) {
idLib::common->DWarning( "idDict::FindKeyIndex: empty key" );
return NULL;
return 0;
}
int hash = argHash.GenerateKey( key, false );