You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
X39
changed the title
[BUG] Preincrement and Postincrement not working correctly on arrays
Make Pre- and Post- increment/decrement operators work on all types
Mar 10, 2021
Describe the bug
Lets say i've got this little array here:
example = [ [0,1], [0, 1, 2] ];
Now i want to increase the second value in the first array by one by doing
example[0][1] = ++example[0][1];
However the output sqf code is:
I tries to first increment example and thereafter assign the value to array.
Doing a post increment won't work at all in this context.
I guess this is a really specific usecase and i won't mind not fix it.
In the end it would generate the same code as i would if i had written:
The text was updated successfully, but these errors were encountered: