From a95464d419ab736e07cad2283e16535ada2621fa Mon Sep 17 00:00:00 2001 From: XoD Date: Fri, 23 Dec 2011 17:47:57 +0100 Subject: [PATCH] Fix return FindKeyIndex replace 'return NULL' to 'return 0', FindKeyIndex should return a int. Signed-off-by: XoD --- neo/idlib/Dict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/idlib/Dict.cpp b/neo/idlib/Dict.cpp index 08d624c..54181a5 100644 --- a/neo/idlib/Dict.cpp +++ b/neo/idlib/Dict.cpp @@ -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 );