From 4c031b9686fadab4dfd6c574bc5c434db7d852d0 Mon Sep 17 00:00:00 2001 From: Joe R Date: Sat, 4 Jan 2025 12:55:38 -0500 Subject: [PATCH] Fix undumping of random states --- pysollib/game/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysollib/game/__init__.py b/pysollib/game/__init__.py index 4acbda27..3b8b7ac4 100644 --- a/pysollib/game/__init__.py +++ b/pysollib/game/__init__.py @@ -3368,7 +3368,7 @@ class Game(object): state = pload() if (game.random is not None and not isinstance(game.random, random.Random) and - isinstance(state, int)): + isinstance(state, tuple)): game.random.setstate(state) # if not hasattr(game.random, "origin"): # game.random.origin = game.random.ORIGIN_UNKNOWN