Update GlobalVariable.mqh

When entering we delete any existing global variable with that name first. Otherwise this will cause a loop as GlobalVariable::makeTemp(m_name) will return false all the time.
This commit is contained in:
biohazardxxx
2023-12-11 11:14:37 +01:00
committed by GitHub
parent f9bf8d94a3
commit 67aac378f5
+1
View File
@@ -248,6 +248,7 @@ public:
void enter()
{
GlobalVariable::remove(m_name);
while(!GlobalVariable::makeTemp(m_name) && !IsStopped())
Sleep(100);
}