Skip to content
Permalink
Browse files

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 89718f3
  • Loading branch information
gitMarky committed Apr 12, 2016
1 parent e12dce0 commit cf81014785c6f16753cd7f53f68634000a95d542
Showing with 1 addition and 1 deletion.
  1. +1 −1 planet/Objects.ocd/Libraries.ocd/Structures.ocd/Vendor.ocd/Script.c
@@ -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

0 comments on commit cf81014

Please sign in to comment.