- Joined
- Feb 2, 2006
- Messages
- 1,633
Hi,
in my own paged buttons system I want to refresh the stock values and use calls like these:
However, this removes different unit and item types from the stocks. Is this a bug in the natives? If yes, how can I fix this? If not, what could be the issue here?
edit:
It seems to occur only when the stock is currently still being refilled and its value is 0. It would be useful to somehow retrieve this data but I guess this is not possible.
in my own paged buttons system I want to refresh the stock values and use calls like these:
JASS:
call RemoveUnitFromStock(this.shop, this.id)
call AddUnitToStock(this.shop, this.id, this.currentStock, this.maxStock)
...
call RemoveItemFromStock(this.shop, this.id)
call AddItemToStock(this.shop, this.id, this.currentStock, this.maxStock)
However, this removes different unit and item types from the stocks. Is this a bug in the natives? If yes, how can I fix this? If not, what could be the issue here?
edit:
It seems to occur only when the stock is currently still being refilled and its value is 0. It would be useful to somehow retrieve this data but I guess this is not possible.
Last edited: