mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
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:
parent
01be2d6f4c
commit
2a03b10d7c
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue