mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-19 16:39:24 +01:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user