From 0dda1ca5e4b63d8a583dfd21c254aab934fc1250 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 5 Aug 2021 14:20:32 -0700 Subject: [PATCH] Save stats when setting stat_trinkets This ensures that if the game crashes afterwards, the new stat_trinkets value won't be lost. --- desktop_version/src/Entity.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 4c301224..5ca6c9f9 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -2643,6 +2643,7 @@ bool entityclass::updateentities( int i ) if (game.trinkets() > game.stat_trinkets && !map.custommode) { game.stat_trinkets = game.trinkets(); + game.savestatsandsettings(); } }