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
Mark 2016-04-12 06:25:22 +02:00
parent 9cb261aac8
commit 8fea6827f5
1 changed files with 1 additions and 1 deletions

View File

@ -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