From 2a03b10d7c31a00e029ecca440dcc2261e392df0 Mon Sep 17 00:00:00 2001 From: Michael Shirt Date: Sat, 29 Oct 2016 18:46:52 -0600 Subject: [PATCH] Fixed a bug with quit_game_bed The interpreter needs to +1 to the index before saving or else quit_game_bed will have the game stuck in an infinite loop of quitting the game when reloading, but we need to -1 immediately after because otherwise the interpreter will skip a command after this is called. --- scripts/SaveLoad.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/SaveLoad.rb b/scripts/SaveLoad.rb index e95ffb4..902ad24 100644 --- a/scripts/SaveLoad.rb +++ b/scripts/SaveLoad.rb @@ -92,5 +92,6 @@ end def quit_game_bed $game_system.map_interpreter.index += 1 save + $game_system.map_interpreter.index -= 1 $scene = nil end