diff --git a/src/d_net.cpp b/src/d_net.cpp index d9eca7a43..6e1d4436e 100644 --- a/src/d_net.cpp +++ b/src/d_net.cpp @@ -2110,7 +2110,7 @@ static int RemoveClass(const PClass *cls) continue; } // [SP] Don't remove owned inventory objects. - if (static_cast(actor)->Owner != NULL) + if (actor->IsKindOf(RUNTIME_CLASS(AInventory)) && static_cast(actor)->Owner != NULL) { continue; }