From 62fb5d87c851c3de72658a4f2ccee59f1f911c7e 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 d9eca7a43f..6e1d4436ed 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; }