Skip to content

Commit

Permalink
Fix bug in game master factory that was causing it to rebuild the mem…
Browse files Browse the repository at this point in the history
…ory on every call to build_game_master, ignoring the optionally provided memory.

PiperOrigin-RevId: 655590212
Change-Id: I332a795a0825bce41fe0998539868264eb98985a
  • Loading branch information
jzleibo authored and copybara-github committed Jul 24, 2024
1 parent 0b74eae commit c4fc68e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion concordia/factory/environment/basic_game_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def build_game_master(
Returns:
A tuple consisting of a game master and its memory.
"""
if memory:
if memory is not None:
game_master_memory = memory
else:
game_master_memory = associative_memory.AssociativeMemory(
Expand Down

0 comments on commit c4fc68e

Please sign in to comment.