From f3159af211f6aa052863f57a6761eb6c22c1b984 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 19 Jan 2017 18:48:21 -0500 Subject: [PATCH] - fixed: Remove ccmd should check if an object is actually an inventory object before attempting to check its owner. (Ooops!) --- src/d_net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }