mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
Fixed potential crash in resolving of multiple assignment
https://forum.zdoom.org/viewtopic.php?t=58055 https://forum.zdoom.org/viewtopic.php?t=58237
This commit is contained in:
parent
79bdfe4ab2
commit
40a348b1f1
1 changed files with 2 additions and 0 deletions
|
@ -2698,6 +2698,8 @@ FxExpression *FxMultiAssign::Resolve(FCompileContext &ctx)
|
|||
auto varaccess = new FxLocalVariable(singlevar, ScriptPosition);
|
||||
auto assignee = new FxTypeCast(varaccess, Base[i]->ValueType, false);
|
||||
LocalVarContainer->Add(new FxAssign(Base[i], assignee, false));
|
||||
// now temporary variable owns the current item
|
||||
Base[i] = nullptr;
|
||||
}
|
||||
auto x = LocalVarContainer->Resolve(ctx);
|
||||
LocalVarContainer = nullptr;
|
||||
|
|
Loading…
Reference in a new issue