SQFvm / runtime

Custom implementation of the Arma script language SQF
GNU Lesser General Public License v3.0
96 stars 30 forks source link

[BUG] Infinite while loops #183

Closed Coryf88 closed 2 years ago

Coryf88 commented 2 years ago

Describe the bug While loops are not restricted to 10,000 iterations.

To Reproduce

  1. Execute sqfvm.exe -a --sqf "private _iterations = 0; while { _iterations < 10001 } do { _iterations = _iterations + 1; }; _iterations"
  2. Notice [INF] Context droped with return value '10001'.

Expected behavior [INF] Context droped with return value '10000'.

Screenshots image

Additional context BIKI - Unscheduled Environment: while Loops