Bugfix: Called wrong function

liquid_container
Mark 2016-02-16 06:29:01 +01:00
parent 3481f5e830
commit 5200dcf724
2 changed files with 2 additions and 2 deletions

View File

@ -621,7 +621,7 @@ public func CheckLiquids(id product, bool remove)
if (this->~IsLiquidContainer()) PushBack(liq_containers, this);
for (var liq_container in liq_containers)
{
var val = liq_container->~GetLiquid(liquid, need - extracted);
var val = liq_container->RemoveLiquid(liquid, need - extracted);
extracted += val[1];
if (extracted >= need)
return true;

View File

@ -77,7 +77,7 @@ public func Move()
return Message("$MsgStuck$");
fuel_amount--;
barrel->GetLiquid("Water", 1, this);
barrel->RemoveLiquid("Water", 1, this);
if (move_dir == -1)
SetDir(DIR_Left);
if (move_dir == 1)