- remove assets from warehouse if they are removed from cohort
This commit is contained in:
Frank
2025-11-09 16:21:38 +01:00
parent 1267a64fcb
commit ea60795e84
4 changed files with 36 additions and 23 deletions
@@ -8596,6 +8596,8 @@ function WAREHOUSE:_DeleteStockItem(stockitem)
local item=self.stock[i] --#WAREHOUSE.Assetitem
if item.uid==stockitem.uid then
table.remove(self.stock,i)
-- remove also from warehouse DB
_WAREHOUSEDB.Assets[stockitem.uid]=nil
break
end
end