- fixed bad actor conversion.

This commit is contained in:
Christoph Oelckers 2021-10-27 20:51:41 +02:00
parent 14ccb74aac
commit 5234481370

View file

@ -244,7 +244,7 @@ inline void setActorPos(DExhumedActor* actor, vec3_t* pos)
inline DExhumedActor* GetActor(const hitdata_t& hitData)
{
return &exhumedActors[hitData.sprite];
return hitData.sprite < 0? nullptr : &exhumedActors[hitData.sprite];
}
END_BLD_NS