mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +00:00
- crash fix with null pointer.
This commit is contained in:
parent
88adef3caa
commit
c9c649d3f8
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ inline int hitasprite(DDukeActor* actor, DDukeActor** hit)
|
|||
{
|
||||
short m;
|
||||
int dist = hitasprite(actor->GetIndex(), &m);
|
||||
if (m >= 0 && hit) *hit = &hittype[m];
|
||||
if (hit) *hit = m >= 0? &hittype[m] : nullptr;
|
||||
else *hit = nullptr;
|
||||
return dist;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue