- Fixed an uninitialized variable in stairs code.

'floor->m_Hexencrush' was left uninitialized in all the floor movers after the first one.
This commit is contained in:
Edoardo Prezioso 2015-07-16 19:46:54 +02:00
parent add52d48cd
commit 1bd23150aa
1 changed files with 1 additions and 0 deletions

View File

@ -727,6 +727,7 @@ bool EV_BuildStairs (int tag, DFloor::EStair type, line_t *line,
floor->m_Type = DFloor::buildStair; //jff 3/31/98 do not leave uninited
//jff 2/27/98 fix uninitialized crush field
floor->m_Crush = (!usespecials && speed == 4*FRACUNIT) ? 10 : -1;
floor->m_Hexencrush = false;
floor->m_ResetCount = reset; // [RH] Tics until reset (0 if never)
floor->m_OrgDist = sec->floorplane.d; // [RH] Height to reset to
}