mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 13:01:48 +00:00
- fixed: Remove ccmd should check if an object is actually an inventory object before attempting to check its owner. (Ooops!)
This commit is contained in:
parent
545ae678e8
commit
62fb5d87c8
1 changed files with 1 additions and 1 deletions
|
@ -2110,7 +2110,7 @@ static int RemoveClass(const PClass *cls)
|
|||
continue;
|
||||
}
|
||||
// [SP] Don't remove owned inventory objects.
|
||||
if (static_cast<AInventory *>(actor)->Owner != NULL)
|
||||
if (actor->IsKindOf(RUNTIME_CLASS(AInventory)) && static_cast<AInventory *>(actor)->Owner != NULL)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue