- fixed: Remove ccmd now no longer removes owned inventory objects (that's what the "take" ccmd is for)

This commit is contained in:
Rachael Alexanderson 2017-01-19 07:25:34 -05:00 committed by Christoph Oelckers
parent 6d3b26f94c
commit 3b55406302
1 changed files with 5 additions and 0 deletions

View File

@ -2109,6 +2109,11 @@ static int RemoveClass(const PClass *cls)
player = true;
continue;
}
// [SP] Don't remove owned inventory objects.
if (static_cast<AInventory *>(actor)->Owner != NULL)
{
continue;
}
removecount++;
actor->ClearCounters();
actor->Destroy();