mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 06:34:59 +00:00
Fixes issue with possible uninitialized dyed items map when opening clothing menus
This commit is contained in:
@@ -12,6 +12,8 @@ class OutfitsMartAdapter < PokemonMartAdapter
|
||||
@worn_clothes = get_current_clothes()
|
||||
@isShop = isShop
|
||||
@version = nil
|
||||
$Trainer.dyed_hats = {} if !$Trainer.dyed_hats
|
||||
$Trainer.dyed_clothes = {} if !$Trainer.dyed_clothes
|
||||
end
|
||||
|
||||
def getDisplayName(item)
|
||||
|
||||
@@ -138,10 +138,8 @@ class ClothesShopPresenter < PokemonMartScreen
|
||||
return true
|
||||
elsif options[choice] == cmd_confirm
|
||||
confirmPutClothes(nil)
|
||||
@scene.pbEndBuyScene
|
||||
return false
|
||||
return true
|
||||
elsif options[choice] == cmd_dye
|
||||
#removeDye(item) selectHatColor
|
||||
dyeOptions(@adapter.is_secondary_hat,item)
|
||||
return true
|
||||
elsif options[choice] == cmd_swap
|
||||
|
||||
Reference in New Issue
Block a user