don't crash when can't place pokemon in pc

This commit is contained in:
infinitefusion
2023-11-25 10:35:04 -05:00
parent d9098afbec
commit e6e53bc94b
3 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -1967,7 +1967,9 @@ class PokemonStorageScreen
box = selected[0] box = selected[0]
index = selected[1] index = selected[1]
if @storage[box, index] if @storage[box, index]
raise _INTL("Position {1},{2} is not empty...", box, index) pbDisplay("Can't place that there.")
return
echoln _INTL("Position {1},{2} is not empty...", box, index)
end end
if box != -1 && index >= @storage.maxPokemon(box) if box != -1 && index >= @storage.maxPokemon(box)
pbDisplay("Can't place that there.") pbDisplay("Can't place that there.")

Binary file not shown.