This commit is contained in:
raa-eruanna 2016-09-16 11:49:45 -04:00
commit 922360ae35
1 changed files with 4 additions and 1 deletions

View File

@ -926,6 +926,9 @@ static bool IsActorACountItem(AActor *mo)
// [SP] for all actors // [SP] for all actors
static bool IsActor(AActor *mo) static bool IsActor(AActor *mo)
{ {
if (mo->IsKindOf(RUNTIME_CLASS(AInventory)))
return static_cast<AInventory *>(mo)->Owner == NULL; // [SP] Exclude inventory-owned items
else
return true; return true;
} }