- 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.
This commit is contained in:
Christoph Oelckers 2021-12-11 14:53:18 +01:00
parent 9e94573ae3
commit b89bba5ed1

View file

@ -100,6 +100,7 @@ public:
inline void SetActiveCrane(bool yes)
{
ownerActor = nullptr;
s->owner = yes ? -2 : -1;
}