This commit is contained in:
Christoph Oelckers 2016-02-09 11:51:39 +01:00
commit 26b657b637
11 changed files with 965 additions and 26 deletions

View file

@ -238,14 +238,14 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, CountInv)
self = COPY_AAPTR(self, pick_pointer);
if (self == NULL || itemtype == NULL)
{
ret->SetInt(false);
ret->SetInt(0);
}
else
{
AInventory *item = self->FindInventory(itemtype);
ret->SetInt(item ? item->Amount : 0);
return 1;
}
return 1;
}
return 0;
}