forked from Mirrors/openclonk
Fix: Corrected commit "Vendor: allow rebuy"
The parameter is an object, but should be an id. This was not detected at runtime.
Fix for commit 89718f35a4
liquid_container
parent
9cb261aac8
commit
8fea6827f5
|
@ -115,7 +115,7 @@ func DoSell(object obj, int wealth_player)
|
|||
// Add the item to the homebase material.
|
||||
if (!obj->~QueryRebuy(wealth_player, this))
|
||||
{
|
||||
this->ChangeBuyableAmount(wealth_player, obj, +1);
|
||||
this->ChangeBuyableAmount(wealth_player, obj->GetID(), +1);
|
||||
}
|
||||
|
||||
// OnSale callback to object e.g. for goal updates
|
||||
|
|
Loading…
Reference in New Issue