From cd6de9aa8cf7edc9fe9c61164e1daeb0061fef57 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Sat, 30 Mar 2024 17:33:28 +0100 Subject: [PATCH] Remove the last setattr on the store benign in this case since the variable is builtin, but consistency and good practices (cherry picked from commit 1d1d18ad1c44846a5736007bc80404c50ad42ed6) --- game/scripts/utility/common_functions.rpy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/game/scripts/utility/common_functions.rpy b/game/scripts/utility/common_functions.rpy index 964e7543..eac3453e 100644 --- a/game/scripts/utility/common_functions.rpy +++ b/game/scripts/utility/common_functions.rpy @@ -119,10 +119,12 @@ init python early: renpy.execute_default_statement(False) def disable_game_menu(): - setattr(renpy.store, "_game_menu_screen", None) + global _game_menu_screen + _game_menu_screen = None def enable_game_menu(): - setattr(renpy.store, "_game_menu_screen", "save_screen") + global _game_menu_screen + _game_menu_screen = "save_screen" def make_revertable(obj): if isinstance(obj, _list):