summaryrefslogtreecommitdiff
path: root/src/engine/save.c
diff options
context:
space:
mode:
authorProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-16 19:14:14 -0500
committerProjectRevoTPP <projectrevotpp@hotmail.com>2018-01-16 19:14:14 -0500
commit31a322fdc589c381af6ec4b4c4781d28cb394cc1 (patch)
treee43fc56221de9ddcb8a8324f6a87ab4cf3f063db /src/engine/save.c
parent9e4d9171e3a2d1d239cb66f1fdff09f069941589 (diff)
use game stat defines
Diffstat (limited to 'src/engine/save.c')
-rw-r--r--src/engine/save.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/save.c b/src/engine/save.c
index be907edcc..250b29a87 100644
--- a/src/engine/save.c
+++ b/src/engine/save.c
@@ -674,8 +674,8 @@ u8 Save_WriteDataInternal(u8 saveType)
EraseFlashSector(i);
// fall through
case SAVE_HALL_OF_FAME: // hall of fame.
- if (GetGameStat(10) < 999)
- IncrementGameStat(10);
+ if (GetGameStat(GAME_STAT_ENTERED_HOF) < 999)
+ IncrementGameStat(GAME_STAT_ENTERED_HOF);
for (i = 0; i < NUM_HALL_OF_FAME_SECTORS; i++)
HandleWriteSectorNBytes(HALL_OF_FAME_SECTOR + i, sHallOfFameChunks[i].data, sHallOfFameChunks[i].size);
SaveSerializedGame();