Skip to content

Commit

Permalink
Fix memory issue in catch.
Browse files Browse the repository at this point in the history
Fixes: #21

PiperOrigin-RevId: 267153952
Change-Id: I2585d2d73eafad44eb3b0b1a3e8f08fa17e5c24b
  • Loading branch information
DeepMind Technologies Ltd authored and jblespiau committed Sep 4, 2019
1 parent 01668cf commit 28a8120
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion open_spiel/games/catch_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ void BasicCatchTests() {
}

void GetAllStatesTest() {
auto states = algorithms::GetAllStates(*LoadGame("catch"),
auto catch_game = LoadGame("catch");
auto states = algorithms::GetAllStates(*catch_game,
/*depth_limit=*/-1,
/*include_terminals=*/true,
/*include_chance_states=*/false);
Expand Down

0 comments on commit 28a8120

Please sign in to comment.