mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-21 11:01:36 +00:00
Fixed crash during line tracing when enter sector is null
https://forum.zdoom.org/viewtopic.php?t=60371
(cherry picked from commit 3111ec97bb
)
This commit is contained in:
parent
2543de6c37
commit
739ebbb8f1
1 changed files with 2 additions and 2 deletions
|
@ -639,7 +639,7 @@ cont:
|
|||
|
||||
case TRACE_Skip:
|
||||
Results->HitType = TRACE_HitNone;
|
||||
if (!special3dpass && (TraceFlags & TRACE_3DCallback) && entersector->e->XFloor.ffloors.Size())
|
||||
if (!special3dpass && (TraceFlags & TRACE_3DCallback) && entersector && entersector->e->XFloor.ffloors.Size())
|
||||
return LineCheck(in, dist, hit, true);
|
||||
break;
|
||||
|
||||
|
@ -648,7 +648,7 @@ cont:
|
|||
}
|
||||
}
|
||||
|
||||
if (Results->HitType == TRACE_HitNone)
|
||||
if (Results->HitType == TRACE_HitNone && entersector)
|
||||
{
|
||||
CurSector = entersector;
|
||||
EnterDist = dist;
|
||||
|
|
Loading…
Reference in a new issue