From 03ffae6eed4d165e0cd03edb0c68d8ddebb1193c Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Sun, 19 Jun 2022 23:07:21 +0100 Subject: [PATCH] Fixed empty wild encounter type tables not being editable in "Edit Wild Encounters" debug function --- Data/Scripts/020_Debug/001_Editor screens/001_EditorScreens.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data/Scripts/020_Debug/001_Editor screens/001_EditorScreens.rb b/Data/Scripts/020_Debug/001_Editor screens/001_EditorScreens.rb index 52a7ec135..8194793b8 100644 --- a/Data/Scripts/020_Debug/001_Editor screens/001_EditorScreens.rb +++ b/Data/Scripts/020_Debug/001_Editor screens/001_EditorScreens.rb @@ -147,7 +147,7 @@ def pbEncounterMapVersionEditor(enc_data) end commands.push(_INTL("Version={1}", enc_data.version)) enc_data.types.each do |enc_type, slots| - next if !enc_type || !slots || slots.length == 0 + next if !enc_type commands.push(_INTL("{1} (x{2})", enc_type.to_s, slots.length)) enc_types.push(enc_type) end