1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 02:28:30 +02:00

Save stats when setting stat_trinkets

This ensures that if the game crashes afterwards, the new stat_trinkets
value won't be lost.
This commit is contained in:
Misa 2021-08-05 14:20:32 -07:00 committed by Ethan Lee
parent e184923667
commit 0dda1ca5e4

View File

@ -2643,6 +2643,7 @@ bool entityclass::updateentities( int i )
if (game.trinkets() > game.stat_trinkets && !map.custommode)
{
game.stat_trinkets = game.trinkets();
game.savestatsandsettings();
}
}