Fix uninitialized args in struct IntLineDef

This commit is contained in:
RaveYard 2022-10-29 23:34:29 +02:00
parent 7503219d3e
commit e064c7a01a
2 changed files with 7 additions and 10 deletions

View file

@ -96,17 +96,17 @@ struct IntSector;
struct IntLineDef
{
uint32_t v1;
uint32_t v2;
int flags;
int special;
int args[5];
uint32_t sidenum[2];
uint32_t v1 = NO_INDEX;
uint32_t v2 = NO_INDEX;
int flags = 0;
int special = 0;
int args[5] = {};
uint32_t sidenum[2] = {NO_INDEX, NO_INDEX};
TArray<UDMFKey> props;
TArray<int> ids;
IntSector *frontsector, *backsector;
IntSector *frontsector = nullptr, *backsector = nullptr;
};
struct MapSector

View file

@ -243,9 +243,6 @@ void FProcessor::ParseLinedef(IntLineDef *ld)
{
std::vector<int> moreids;
SC_MustGetStringName("{");
ld->v1 = ld->v2 = ld->sidenum[0] = ld->sidenum[1] = NO_INDEX;
ld->flags = 0;
ld->special = 0;
while (!SC_CheckString("}"))
{
const char *value;