mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix A_LookForBetter to not leave a stray thinker reference lingering potentially forever, as toaster pointed out it might do.
This commit is contained in:
parent
7dddfb3466
commit
cfa9da9b45
1 changed files with 2 additions and 2 deletions
|
|
@ -12389,10 +12389,10 @@ void A_LookForBetter(mobj_t *actor)
|
|||
return;
|
||||
#endif
|
||||
|
||||
P_SetTarget(&oldtarget, actor->target);
|
||||
oldtarget = actor->target;
|
||||
|
||||
if (!P_LookForPlayers(actor, (locvar1 & 65535), false, FixedMul((locvar1 >> 16)*FRACUNIT, actor->scale)))
|
||||
P_SetTarget(&actor->target, oldtarget);
|
||||
actor->target = oldtarget;
|
||||
|
||||
A_FaceTarget(actor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue