- 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

View file

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