mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 22:51:50 +00:00
- fixed bad actor conversion.
This commit is contained in:
parent
14ccb74aac
commit
5234481370
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ inline void setActorPos(DExhumedActor* actor, vec3_t* pos)
|
||||||
|
|
||||||
inline DExhumedActor* GetActor(const hitdata_t& hitData)
|
inline DExhumedActor* GetActor(const hitdata_t& hitData)
|
||||||
{
|
{
|
||||||
return &exhumedActors[hitData.sprite];
|
return hitData.sprite < 0? nullptr : &exhumedActors[hitData.sprite];
|
||||||
}
|
}
|
||||||
|
|
||||||
END_BLD_NS
|
END_BLD_NS
|
||||||
|
|
Loading…
Reference in a new issue