diff --git a/trunk/src/cheat.cpp b/trunk/src/cheat.cpp index f61668a0..44ea34ec 100644 --- a/trunk/src/cheat.cpp +++ b/trunk/src/cheat.cpp @@ -216,7 +216,7 @@ void FCEU_LoadGameCheats(FILE *override) } FCEU_DispMessage("Cheats file loaded.",0); //Tells user a cheats file was loaded. - while(fgets(linebuf,2048,fp)>0) + while(fgets(linebuf,2048,fp) != nullptr) { char *tbuf=linebuf; int doc=0;