Page MenuHomeFeedback Tracker

For loop with with step parameter acting unexpectedly
Closed, ResolvedPublic

Description

For loop runs 1 iteration to far in some cases.

Details

Legacy ID
1912089302
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

CODE:
_count = 89;
for "_i" from 0 to _count step 20 do {
systemChat str _i;
};
OUTPUT:
0
20
40
60
80

CODE:
_count = 91;
for "_i" from 0 to _count step 20 do {
systemChat str _i;
};
OUTPUT:
0
20
40
60
80
100?!?!?!

Event Timeline

Grim edited Steps To Reproduce. (Show Details)Jun 10 2015, 1:36 AM
Grim set Category to Scripting.
Grim set Reproducibility to Always.
Grim set Severity to None.
Grim set Resolution to Fixed.
Grim set Legacy ID to 1912089302.May 8 2016, 12:12 PM
Grim edited a custom field.
POLPOX added a subscriber: POLPOX.May 8 2016, 12:12 PM

for C is much slower

Should be fixed in tomorrow's dev.

Adam added a subscriber: Adam.May 8 2016, 12:12 PM
Adam added a comment.Jun 17 2015, 9:49 AM

Issue is fixed. Can you please confirm? Thank you.

Grim added a subscriber: Grim.May 8 2016, 12:12 PM
Grim added a comment.Jun 19 2015, 2:55 PM

Confirmed working in dev. Thank you