Skip to content

Commit 2f27411

Browse files
committed
remove local variable on creating global
1 parent 6685e45 commit 2f27411

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Code/ContextSystem/Contexts/GlobalKeyword.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ protected override IEnumerator<float> Execute()
5757
throw new TosoksFuckedUpException();
5858
}
5959

60+
Script.RemoveLocalVariable(_variableContext.DefinedVariable);
6061
VariableIndex.AddGlobalVariable(_variableContext.DefinedVariable);
6162
}
6263
}

0 commit comments

Comments
 (0)