A lot of modes use count instead of foreach, like here: https://community.bistudio.com/wiki/Code_Optimisation#forEach_vs_count
But now count block is required to return boolean, and it breaks a lot of code.
A lot of modes use count instead of foreach, like here: https://community.bistudio.com/wiki/Code_Optimisation#forEach_vs_count
But now count block is required to return boolean, and it breaks a lot of code.
b = []; {b pushBack _x} count allUnits
works if
b = []; {b pushBack _x; false} count allUnitsUAV
It is not the count. pushBack has been expanded and returns the index of last element inserted, which is Number, and count expects either Nothing or Boolean.
b = []; {0 = b pushBack _x} count allUnits
assigning result of pushBack to 0 will make it return nothing.
Mass-closing all resolved issues not updated in the last month.
Please PM me in BI Forums (http://forums.bistudio.com/member.php?55374-Fireball) if you feel your bug was closed in error.