mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix frequent legacy GL crash that Jeck is getting
This uses `gl_frontsector`, which can sometimes be NULL.
This commit is contained in:
parent
21706c6edf
commit
82e9257284
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ static FUINT HWR_CalcSlopeLight(FUINT lightnum, pslope_t *slope, const sector_t
|
|||
{
|
||||
INT16 finallight = lightnum;
|
||||
|
||||
if (slope != NULL && P_ApplyLightOffsetFine(lightnum, sector))
|
||||
if (slope != NULL && sector != NULL && P_ApplyLightOffsetFine(lightnum, sector))
|
||||
{
|
||||
finallight += slope->hwLightOffset;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue