Correct the style of some pointer checks

This commit is contained in:
Clownacy 2020-01-26 13:52:24 +00:00
parent 0bcf978424
commit 30dced2587

View file

@ -442,7 +442,7 @@ BOOL SaveTimeCounter(void)
sprintf(path, "%s\\290.rec", gModulePath);
fp = fopen(path, "rb");
if (fp)
if (fp != NULL)
{
// Read data
fread(&rec, sizeof(REC), 1, fp);
@ -493,7 +493,7 @@ int LoadTimeCounter(void)
sprintf(path, "%s\\290.rec", gModulePath);
fp = fopen(path, "rb");
if (!fp)
if (fp == NULL)
return 0;
// Read data