ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
209 stars 26 forks source link

Using `0` in Vector compiles to `Empty Array` #225

Closed timebomb0 closed 3 years ago

timebomb0 commented 3 years ago

Compiling Vector(12, 0, 50) compiles to Vector(12, Empty Array, 50). This is on 2.0 Preview B. 0.0 is a valid vector location in some cases, so I'd expect it to compile 0 to the number 0 in this scenario.

Protowalker commented 3 years ago

Empty Array is equivalent to zero when used in the position of a number; this is an element optimization. If you don't want things like this to happen, you can disable it in the extension settings.

timebomb0 commented 3 years ago

Ahh ok, I didn't realize that was valid as a value in a vector. Thanks!