summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/game.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/soh/src/code/game.c b/soh/src/code/game.c
index eea895ce1..a411523ec 100644
--- a/soh/src/code/game.c
+++ b/soh/src/code/game.c
@@ -421,6 +421,8 @@ void GameState_Update(GameState* gameState) {
int32_t prevTime = CVar_GetS32("gPrevTime", gSaveContext.dayTime);
gSaveContext.dayTime = prevTime;
+ } else {
+ CVar_SetS32("gPrevTime", -1);
}
//since our CVar is same value and properly default to 0 there is not problems doing this in single line.