shithub: cstory

Download patch

ref: 331d5a2d950149b8eb294831681ad45322a22477
parent: 8d6c449482091663483f7b16814293919af688fb
parent: 30dced2587422b9d6042cc4e18854e24340dbda9
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Jan 26 08:52:47 EST 2020

Merge branch 'accurate' into portable

--- a/src/MycParam.cpp
+++ b/src/MycParam.cpp
@@ -445,7 +445,7 @@
 	sprintf(path, "%s/290.rec", gModulePath);
 
 	fp = fopen(path, "rb");
-	if (fp)
+	if (fp != NULL)
 	{
 		// Read data
 		rec.counter[0] = File_ReadLE32(fp);
@@ -510,7 +510,7 @@
 	sprintf(path, "%s/290.rec", gModulePath);
 
 	fp = fopen(path, "rb");
-	if (!fp)
+	if (fp == NULL)
 		return 0;
 
 	// Read data
--