mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-10 14:51:40 +00:00
- fix null pointer crash
This commit is contained in:
parent
f0ec4a6838
commit
453a4cc8b1
1 changed files with 2 additions and 0 deletions
|
@ -334,6 +334,8 @@ bool FLevel::PointInsideSubSector(const float x, const float y, const MapSubsect
|
|||
kexVec2 pt1, pt2;
|
||||
|
||||
surf = leafSurfaces[0][sub - GLSubsectors];
|
||||
if (!surf)
|
||||
return false;
|
||||
|
||||
// check to see if the point is inside the subsector leaf
|
||||
for (i = 0; i < surf->numVerts; i++)
|
||||
|
|
Loading…
Reference in a new issue