- use value initialization for secspecial_t

This commit is contained in:
Tommy Nguyen 2018-10-23 13:19:10 -04:00 committed by Christoph Oelckers
commit 75bd1b00b4
4 changed files with 6 additions and 16 deletions

View file

@ -428,7 +428,7 @@ bool P_CreateCeiling(sector_t *sec, DCeiling::ECeiling type, line_t *line, int t
switch (change & 3)
{
case 1: // type is zeroed
ceiling->m_NewSpecial.Clear();
ceiling->m_NewSpecial = {};
ceiling->m_Type = DCeiling::genCeilingChg0;
break;
case 2: // type is copied
@ -447,7 +447,7 @@ bool P_CreateCeiling(sector_t *sec, DCeiling::ECeiling type, line_t *line, int t
switch (change & 3)
{
case 1: // type is zeroed
ceiling->m_NewSpecial.Clear();
ceiling->m_NewSpecial = {};
ceiling->m_Type = DCeiling::genCeilingChg0;
break;
case 2: // type is copied