- fixed last commit.

This commit is contained in:
Christoph Oelckers 2014-10-29 10:40:08 +01:00
parent 978667143c
commit c1a0ee9623

View file

@ -403,7 +403,7 @@ void P_RemoveThing(AActor * actor)
if (actor->player == NULL || actor != actor->player->mo) if (actor->player == NULL || actor != actor->player->mo)
{ {
// Don't also remove owned inventory items // Don't also remove owned inventory items
if (actor->IsKindOf(RUNTIME_CLASS(AInventory)) && static_cast<AInventory*>(actor)->Owner == NULL) return; if (actor->IsKindOf(RUNTIME_CLASS(AInventory)) && static_cast<AInventory*>(actor)->Owner != NULL) return;
// be friendly to the level statistics. ;) // be friendly to the level statistics. ;)
actor->ClearCounters(); actor->ClearCounters();