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.
This commit is contained in:
Michael Shirt 2016-10-29 18:46:52 -06:00
parent 01be2d6f4c
commit 2a03b10d7c

View file

@ -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