basic sprites sorting validation

This commit is contained in:
infinitefusion
2022-12-05 17:32:56 -05:00
parent 732096c884
commit bc90211693
17 changed files with 51 additions and 5 deletions

View File

@@ -908,7 +908,7 @@ end
def pbShowCommands(msgwindow, commands = nil, cmdIfCancel = 0, defaultCmd = 0)
return 0 if !commands
if defaultCmd == 0 && $game_variables[VAR_COMMAND_WINDOW_INDEX] != 0
if defaultCmd == 0 && ($game_variables && $game_variables[VAR_COMMAND_WINDOW_INDEX] != 0)
defaultCmd = $game_variables[VAR_COMMAND_WINDOW_INDEX]
end
cmdwindow = Window_CommandPokemonEx.new(commands)