Fix post-results "last turn" save.

This commit is contained in:
Dan Albert 2023-01-04 14:10:45 -08:00
parent 9cb641bddf
commit 4b542b70ae

View File

@ -332,7 +332,11 @@ class Game:
from .server import EventStream
from .sim import GameUpdateEvents
persistency.save_last_turn_state(self)
if no_action:
# Only save the last turn state if the turn was skipped. Otherwise, we'll
# end up saving the game after we've already applied the results, making
# this useless...
persistency.save_last_turn_state(self)
events = GameUpdateEvents()