Fixed initialization of Strife dialogs internal structures
Explicit assignment to members, no more memset() on non-PoD types https://mantis.zdoom.org/view.php?id=317
This commit is contained in:
parent
bb6e667f33
commit
bdd20d3887
3 changed files with 13 additions and 28 deletions
|
|
@ -121,7 +121,6 @@ class USDFParser : public UDMFParserBase
|
|||
bool ParseChoice(FStrifeDialogueReply **&replyptr)
|
||||
{
|
||||
FStrifeDialogueReply *reply = new FStrifeDialogueReply;
|
||||
memset(reply, 0, sizeof(*reply));
|
||||
|
||||
reply->Next = *replyptr;
|
||||
*replyptr = reply;
|
||||
|
|
@ -293,8 +292,6 @@ class USDFParser : public UDMFParserBase
|
|||
{
|
||||
FStrifeDialogueNode *node = new FStrifeDialogueNode;
|
||||
FStrifeDialogueReply **replyptr = &node->Children;
|
||||
memset(node, 0, sizeof(*node));
|
||||
//node->ItemCheckCount[0] = node->ItemCheckCount[1] = node->ItemCheckCount[2] = -1;
|
||||
|
||||
node->ThisNodeNum = StrifeDialogues.Push(node);
|
||||
node->ItemCheckNode = -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue