- use proper owner interface in nnext sound check.

This commit is contained in:
Christoph Oelckers 2021-11-19 21:13:01 +01:00
parent 72da21a7e3
commit a6bf9c7208

View file

@ -8336,7 +8336,8 @@ DBloodActor* aiPatrolSearchTargets(DBloodActor* actor)
sndy = emitter->y;
// sound attached to the sprite
if (pSpr != emitter && emitter->owner != actor->GetSpriteIndex())
auto emitterActor = &bloodActors[emitter - sprite];
if (pSpr != emitter && emitterActor->GetOwner() != actor)
{
if (!sectRangeIsFine(emitter->sectnum)) return false;