fixes crash when backing out of elevator menu

This commit is contained in:
infinitefusion
2024-12-21 21:19:25 -05:00
parent 5034855f98
commit fd053345b1

View File

@@ -1483,7 +1483,8 @@ def isPlayerFemale()
return pbGet(VAR_TRAINER_GENDER) == GENDER_FEMALE
end
def optionsMenu(options = [], cmdIfCancel = nil, startingOption = 0)
def optionsMenu(options = [], cmdIfCancel = -1, startingOption = 0)
cmdIfCancel = -1 if !cmdIfCancel
result = pbShowCommands(nil, options, cmdIfCancel, startingOption)
echoln "menuResult :#{result}"
return result