Fixed: player's legs staying invisible when map transferring from tall grass, error when showing the Move Relearner a Pokémon that has no level-up moves it can relearn, Trainer Type Editor spamming the console when selecting the "new" option

This commit is contained in:
Maruno17
2021-06-12 16:12:36 +01:00
parent 63fb7aadf7
commit eb1458018d
3 changed files with 7 additions and 2 deletions

View File

@@ -481,7 +481,11 @@ class TrainerTypeLister
@sprite.bitmap.dispose if @sprite.bitmap
return if index < 0
begin
@sprite.setBitmap(GameData::TrainerType.front_sprite_filename(@ids[index]), 0)
if @ids[index].is_a?(Symbol)
@sprite.setBitmap(GameData::TrainerType.front_sprite_filename(@ids[index]), 0)
else
@sprite.setBitmap(nil)
end
rescue
@sprite.setBitmap(nil)
end