From 3b55406302badcba7e0d94415e8dac9ee201786a Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Thu, 19 Jan 2017 07:25:34 -0500 Subject: [PATCH] - fixed: Remove ccmd now no longer removes owned inventory objects (that's what the "take" ccmd is for) --- src/d_net.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/d_net.cpp b/src/d_net.cpp index c47ae6bd1..d9eca7a43 100644 --- a/src/d_net.cpp +++ b/src/d_net.cpp @@ -2109,6 +2109,11 @@ static int RemoveClass(const PClass *cls) player = true; continue; } + // [SP] Don't remove owned inventory objects. + if (static_cast(actor)->Owner != NULL) + { + continue; + } removecount++; actor->ClearCounters(); actor->Destroy();