Browse Source

Fix the saving bug

Yihua LOU 7 years ago
parent
commit
a3d6b7ea8a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      global.c

+ 1 - 1
global.c

@@ -801,7 +801,7 @@ PAL_SaveGame_Common(
 	i = PAL_MKFGetChunkSize(0, gpGlobals->f.fpSSS);
 	i += size - sizeof(EVENTOBJECT) * MAX_EVENT_OBJECTS;
 
-	fwrite(&s, i, 1, fp);
+	fwrite(s, i, 1, fp);
 	fclose(fp);
 }