Skip to content

Commit

Permalink
Fixed|World|Client: Crash on map load with dynamic lights disabled
Browse files Browse the repository at this point in the history
P_MobjCreate() initialized the attributed lumobj index incorrectly
(now zero-based).

Also fixed a couple more initialization issues in ConvexSubspace's
internal Continuity struct.
  • Loading branch information
danij-deng committed Sep 21, 2013
1 parent 0febdee commit d40f83d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doomsday/client/src/world/bsp/convexsubspace.cpp
Expand Up @@ -74,7 +74,12 @@ struct Continuity
OrderedSegmentList discordSegs;

Continuity(Sector *sector)
: sector(sector), coverage(0), discordSegments(0)
: sector(sector),
coverage(0),
discordSegments(0),
norm(0),
part(0),
self(0)
{}

/**
Expand Down
1 change: 1 addition & 0 deletions doomsday/client/src/world/p_mobj.cpp
Expand Up @@ -108,6 +108,7 @@ mobj_t *P_MobjCreate(thinkfunc_t function, coord_t const pos[3], angle_t angle,
mo->radius = radius;
mo->height = height;
mo->ddFlags = ddflags;
mo->lumIdx = -1;
mo->thinker.function = function;
if(mo->thinker.function)
{
Expand Down

0 comments on commit d40f83d

Please sign in to comment.