Fixed empty wild encounter type tables not being editable in "Edit Wild Encounters" debug function

This commit is contained in:
Maruno17
2022-06-19 23:07:21 +01:00
parent 2486fa9fe2
commit 03ffae6eed

View File

@@ -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