Refactoring: Stackable: Simplified TakeObject() even further

The check whether the stack is infinite happens in DoStackCount(), too.
liquid_container
Mark 2016-03-10 06:17:07 +01:00
parent ea3c5ad920
commit 25408b4367
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public func TakeObject()
}
else if (count > 1)
{
if (!(this->IsInfiniteStackCount())) DoStackCount(-1);
DoStackCount(-1);
var take = CreateObjectAbove(GetID(), 0, 0, GetOwner());
take->SetStackCount(1);
return take;