mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-21 19:50:54 +00:00
Fix uninitialized args in struct IntLineDef
This commit is contained in:
parent
7503219d3e
commit
e064c7a01a
2 changed files with 7 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue