aboutsummaryrefslogtreecommitdiff
path: root/diplomacy
diff options
context:
space:
mode:
authornotoraptor <stevenbocco@gmail.com>2019-08-26 13:26:27 -0400
committerPhilip Paquette <pcpaquette@gmail.com>2019-08-28 06:15:47 -0400
commita42d870221c251bebfd3cc6cc1e1c0d23b9c53b6 (patch)
treedbb45547f3914d9666da54e75826e7c9cfcf8e39 /diplomacy
parent69240858eb3962521b0266f737f1ea6cba681faa (diff)
Use calls to Game parent methods in function to_saved_game_format().
This will help using the function even with derived classes.
Diffstat (limited to 'diplomacy')
-rw-r--r--diplomacy/utils/export.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/diplomacy/utils/export.py b/diplomacy/utils/export.py
index 3a03de1..6c54689 100644
--- a/diplomacy/utils/export.py
+++ b/diplomacy/utils/export.py
@@ -32,9 +32,9 @@ def to_saved_game_format(game):
"""
# Get phase history.
- phases = game.get_phase_history()
+ phases = Game.get_phase_history(game)
# Add current game phase.
- phases.append(game.get_phase_data())
+ phases.append(Game.get_phase_data(game))
# Filter rules.
rules = [rule for rule in game.rules if rule not in RULES_TO_SKIP]
# Extend states fields.