From fd053345b19607f3f2fa90d338fcc19b41848373 Mon Sep 17 00:00:00 2001 From: infinitefusion Date: Sat, 21 Dec 2024 21:19:25 -0500 Subject: [PATCH] fixes crash when backing out of elevator menu --- Data/Scripts/052_AddOns/GameplayUtils.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Data/Scripts/052_AddOns/GameplayUtils.rb b/Data/Scripts/052_AddOns/GameplayUtils.rb index 73e6866c6..3f2c7b20c 100644 --- a/Data/Scripts/052_AddOns/GameplayUtils.rb +++ b/Data/Scripts/052_AddOns/GameplayUtils.rb @@ -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