Skip to content

Commit

Permalink
Fixed|Multiplayer|Client: Crash when joining a game
Browse files Browse the repository at this point in the history
The luminousClipped array was evidently accessed before being
allocated for the first time, resulting in a null pointer access
when joining a game in multiplayer.
  • Loading branch information
skyjake committed Sep 20, 2013
1 parent bf50364 commit a567550
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doomsday/client/src/render/r_main.cpp
Expand Up @@ -1308,6 +1308,9 @@ double R_ViewerLumobjDistance(int idx)

bool R_ViewerLumobjIsClipped(int idx)
{
// If we are not yet prepared for this, just say everything is clipped.
if(!luminousClipped) return true;

/// @todo Do not assume the current map.
if(idx >= 0 && idx < App_World().map().lumobjCount())
{
Expand All @@ -1318,6 +1321,9 @@ bool R_ViewerLumobjIsClipped(int idx)

bool R_ViewerLumobjIsHidden(int idx)
{
// If we are not yet prepared for this, just say everything is hidden.
if(!luminousClipped) return true;

/// @todo Do not assume the current map.
if(idx >= 0 && idx < App_World().map().lumobjCount())
{
Expand Down

0 comments on commit a567550

Please sign in to comment.