- removed the ValidateTarget call from HackSeqCallback.

The original function does not validate its target, it just uses undefined memory instead when this case happens.
This commit is contained in:
Christoph Oelckers 2023-03-16 17:49:50 +01:00
parent c4041affb1
commit d17650f885

View file

@ -60,8 +60,8 @@ AISTATE zombie13AC2C = { kAiStateOther, 11, nStandClient, 0, entryEZombie, NULL,
void HackSeqCallback(int, DBloodActor* actor)
{
if (!actor->ValidateTarget(__FUNCTION__)) return;
auto target = actor->GetTarget();
if (!target) return;
DUDEINFO* pDudeInfo = getDudeInfo(actor->spr.type);
DUDEINFO* pDudeInfoT = getDudeInfo(target->spr.type);
DVector3 dv;