Skip to content

Commit

Permalink
Fixed: Crash due to cvar change notification when theMap==NULL
Browse files Browse the repository at this point in the history
The rend-light cvar caused a change notification that lead to a crash
when no map was loaded (i.e., during engine startup).
  • Loading branch information
skyjake committed Mar 22, 2012
1 parent 47565cf commit ead1cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/r_lumobjs.c
Expand Up @@ -1217,7 +1217,7 @@ int LOIT_UnlinkMobjLumobj(thinker_t* th, void* context)

void LO_UnlinkMobjLumobjs(void)
{
if(!useDynlights)
if(!useDynlights && theMap)
{
// Mobjs are always public.
GameMap_IterateThinkers(theMap, gx.MobjThinker, 0x1, LOIT_UnlinkMobjLumobj, NULL);
Expand Down

0 comments on commit ead1cc5

Please sign in to comment.