mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-01 14:11:01 +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;
|
short m;
|
||||||
int dist = hitasprite(actor->GetIndex(), &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;
|
else *hit = nullptr;
|
||||||
return dist;
|
return dist;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue