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