Fixes clothes/hats menu

This commit is contained in:
infinitefusion
2024-12-29 15:11:31 -05:00
parent 3415c85618
commit de9029eb1b
9 changed files with 71 additions and 39 deletions

View File

@@ -152,8 +152,10 @@ class ClothesShopView < PokemonMart_Scene
end
def pbEndBuyScene
@sprites["trainerPreview"].erase()
@sprites["trainerPreview"] = nil
if !@sprites.empty?
@sprites["trainerPreview"].erase()
@sprites["trainerPreview"] = nil
end
pbDisposeSpriteHash(@sprites)
@viewport.dispose
Kernel.pbClearText()