mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Duke/RR: Do nullptr test in ceilingspace_r()
after receiving crash in Redneck Rampage Route 66 (do Duke for parity).
This commit is contained in:
parent
96867e15d5
commit
a7e99a3bd1
2 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ void SerializeActorGlobals(FSerializer& arc)
|
||||||
|
|
||||||
bool ceilingspace_d(sectortype* sectp)
|
bool ceilingspace_d(sectortype* sectp)
|
||||||
{
|
{
|
||||||
if( (sectp->ceilingstat&1) && sectp->ceilingpal == 0 )
|
if (sectp && (sectp->ceilingstat&1) && sectp->ceilingpal == 0)
|
||||||
{
|
{
|
||||||
switch(sectp->ceilingpicnum)
|
switch(sectp->ceilingpicnum)
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,7 +53,7 @@ void resetlanepics(void);
|
||||||
|
|
||||||
bool ceilingspace_r(sectortype* sectp)
|
bool ceilingspace_r(sectortype* sectp)
|
||||||
{
|
{
|
||||||
if( (sectp->ceilingstat&1) && sectp->ceilingpal == 0 )
|
if (sectp && (sectp->ceilingstat&1) && sectp->ceilingpal == 0)
|
||||||
{
|
{
|
||||||
switch(sectp->ceilingpicnum)
|
switch(sectp->ceilingpicnum)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue