I have modified another basic process that has (rightly) been frowned upon
recently as a possible cause of bugs.
Executed actions are no longer saved as a List<PossibleAction> but as a
containerless sequence of PossibleAction objects.
This allows postponing object assignment during deserialization until all
previous actions have been processed, so that at the game always is in the
same state as during playing the game.
This should fix (or at least help fixing) saved file loading problems that
are attributable to assignment to objects that do not exist at the start of
the game.
Erik.
|