When clearing the callqueue from within a method executed via the callqueue, the game will crash.
Description
Description
Details
Details
- Severity
- Crash
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7
- Category
- General
Steps To Reproduce
- For demonstration purposes, create a class with a static method that clears the callqueue:
class StaticClearCQ { static void ClearCQ() { GetGame().GetCallqueue().Clear(); } }
- Open a world such as GM_Arland.ent and play it from the Workbench.
- While the game is running, test the method using the console:
StaticClearCQ.ClearCQ();
It is executed successfully without any apparent issues.
- Now, try the same but via the Callqueue:
GetGame().GetCallqueue().Call(StaticClearCQ.ClearCQ);
Once the ClearCQ method is executed, the Workbench crashes.