Skip to content

Commit

Permalink
Fixed|Client: Crash when performing a reset with no map loaded
Browse files Browse the repository at this point in the history
There was a null pointer access when setting Fog parameters.
  • Loading branch information
skyjake committed Dec 25, 2015
1 parent 53fe599 commit 501aa9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/apps/client/src/gl/gl_main.cpp
Expand Up @@ -550,7 +550,7 @@ void GL_SetupFogFromMapInfo(Record const *mapInfo)
R_SetupFogDefaults();
}

if(!(mapInfo->geti("flags") & MIF_FOG))
if(mapInfo && !(mapInfo->geti("flags") & MIF_FOG))
{
GL_UseFog(false);
}
Expand Down

0 comments on commit 501aa9b

Please sign in to comment.