[World Editor] Editing or creating a new variable clears the next selected variable

There appears to be a catastrophic bug within the world editor’s trigger module where editing or making a new variable with a new type resets the value of the next selected variable (of any type) in the GUI.

For instance, I make a “temptimer” variable in the GUI, then select the already-existing “tempunit” below it, and the result is the “tempunit” variable becomes cleared in every trigger it is currently active in (even though its type didn’t change).

This is a bad bug. There is no undo for cleared variables in actions, etc., so selecting a variable used in several triggers means having to recreate every single function you had previously made (for no reason, the variable did not change type or array size, etc.).

The only option right now is that every major change be saved as a new map version, that way I can simply close and refresh without saving the bugged variable reset.

Update: pasting a variable causes the bug as well. It seems to only happen once per launch of the editor. Video demonstration after a fresh load of my map:
https://www.youtube.com/watch?v=PVyKubtT4uA

(Ignore any bad GUI code it’ll all be scripted in Lua hopefully :stuck_out_tongue: )

Update 2: this is with a map set to Lua

Same error. Still not fixed(

Thanks for the video! Your keyboard, no offense, is super loud! Need a headphone warning

I have the bug.
It’s happened while i copy-pasted a variables from a other my i made.
But, it’s not repair.

-I saved+ reloaded the map.
-I saved then restart the editor then reloaded the map
-I checked file of the game.
-I restarted my computer.
-I uninstalled Warcraft then reinstalled.

And in all this case, it not resolved my problem…
My problem happen in all already existed my. But also in new one.

So, at this moment, my editor is unusable.

This issue is still not fixed. I constantly encounter this bug when working with GUI triggers. This is extremely aggravating to counter, several versions of my map came out broken as I missed the point where this happened.