- fixed bad pointer comparison.

MSVC did not catch this, only GCC 11 and Clang errored out on this one. :(
This commit is contained in:
Christoph Oelckers 2021-10-24 08:21:54 +02:00
parent da817a234b
commit 5d0ee1478c

View file

@ -181,7 +181,7 @@ void AIMummy::Tick(RunListEvent* ev)
if (pTarget == nullptr)
{
auto pTarget = FindPlayer(pActor, 100);
if (pTarget >= 0)
if (pTarget != nullptr)
{
D3PlayFX(StaticSound[kSound7], pActor);
pActor->nFrame = 0;