Replace player instance

This commit is contained in:
Yohann D'ANELLO
2020-11-19 00:33:50 +01:00
parent 58fbba8cc9
commit 3126b89bc1
2 changed files with 6 additions and 0 deletions

View File

@ -123,6 +123,8 @@ class Game:
Loads the game from a dictionary
"""
self.map.load_state(d)
# noinspection PyTypeChecker
self.player = self.map.find_entities(Player)[0]
self.display_actions(DisplayActions.UPDATE)
def load_game(self) -> None: