fixed comparing an int to NULL

This commit is contained in:
myT 2017-03-08 01:06:30 +01:00
parent 720c84e24e
commit ae2560984a

View file

@ -1154,7 +1154,7 @@ void CL_LoadCommandHistory()
fileHandle_t f; fileHandle_t f;
FS_FOpenFileRead( HISTORY_PATH, &f, qfalse ); FS_FOpenFileRead( HISTORY_PATH, &f, qfalse );
if ( f == NULL ) if ( f == 0 )
return; return;
int count; int count;
@ -1200,7 +1200,7 @@ void CL_SaveCommandHistory()
return; return;
const fileHandle_t f = FS_FOpenFileWrite( HISTORY_PATH ); const fileHandle_t f = FS_FOpenFileWrite( HISTORY_PATH );
if ( f == NULL ) if ( f == 0 )
return; return;
int count = 0; int count = 0;