bsimser / Inventory-Pro

https://devdog.io
MIT License
2 stars 0 forks source link

Currency gets removed #277

Open bsimser opened 5 years ago

bsimser commented 5 years ago

Original report by Anonymous.


Even in the demo when opening a loot box that contains currency if you exit the loot window and reopen it all the gold is removed regardless of if u picked it up

bsimser commented 4 years ago

Original comment by Ee Chun Giap (Bitbucket: Chungiap, ).


Glad to know that I am not the only one suffering from this issues, removing these from LootableObject script solve the problem for me.

        currencies = new CurrencyDecorator\[cs.Length\];  
        for \(int i = 0; i < currencies.Length; i\+\+\)  
        \{  
            currencies\[i\] = new CurrencyDecorator\(cs\[i\].currency, cs\[i\].amount\);  
        \}