From b89bba5ed1d68ddbe42865d6888c0d9c9910b6c2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 11 Dec 2021 14:53:18 +0100 Subject: [PATCH] - Duke: DDukeActor::setActiveCrane must also clear ownerActor. Apparently something in the crane code can cause a condition where this wasn't cleared before grabbing a player. Formerly these two were the same variable but had to be separated. --- source/games/duke/src/types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/games/duke/src/types.h b/source/games/duke/src/types.h index 385a84967..af0058aee 100644 --- a/source/games/duke/src/types.h +++ b/source/games/duke/src/types.h @@ -100,6 +100,7 @@ public: inline void SetActiveCrane(bool yes) { + ownerActor = nullptr; s->owner = yes ? -2 : -1; }