If anything comes after ctrlDelete in the code of the EH, the game crashes. See repro. This might also be valid for other control EHs and even display EHs.
Description
Description
Details
Details
- Severity
- Crash
- Resolution
- Won't Fix
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Scripting
Steps To Reproduce
- Execute in Eden Editor
disableSerialization; _ctrl = findDisplay 313 ctrlCreate ["RscButton", -1]; _ctrl ctrlSetText "CLOSE"; _ctrl ctrlAddEventHandler ["buttonClick", { ctrlDelete (_this # 0); systemChat "CRASH!"; }];
Event Timeline
Comment Actions
your event needs to return false if you want to prevent further EH trigger
it tries to trigger buttonclick EH of parent, but its gone so it cannot see its own parent