Zezombye / overpy

High-level language for the Overwatch Workshop with support for compilation and decompilation.
GNU General Public License v3.0
180 stars 28 forks source link

Incorrect behavior with switch and loop if condition is true #311

Closed pharingWell closed 1 year ago

pharingWell commented 1 year ago

The skip statement called near valueInArray in the switch function causes currentRuleHasVariableGoto to be set to true, as valueInArray is not distanceTo.

A temporary fix was done by adding "&& content.args[0].name != "valueInArray"" to the _distanceTo check, but I have no idea what problems that could cause elsewhere

Zezombye commented 1 year ago

Fixed in 6.13