Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Issue with forEach Loops and deleteAt Index #2848

Merged
merged 5 commits into from
Nov 25, 2015
Merged

Commits on Nov 17, 2015

  1. Configuration menu
    Copy the full SHA
    f3c5c64 View commit details
    Browse the repository at this point in the history
  2. fix missing bracket

    jokoho48 committed Nov 17, 2015
    Configuration menu
    Copy the full SHA
    561f612 View commit details
    Browse the repository at this point in the history
  3. Implement nice index deletion iteration solution

    Previously when iterating over an array and modifying the same array via deletion of the current index, incorrect means was used to account for the change in index resulting in any further deletions being applied to the wrong elements.
    
    This solution does not require duplication of the array or the use of external variables to track the number of deleted elements. We simply lower the `_forEachIndex` by 1 whenever an element is removed.
    kymckay committed Nov 17, 2015
    Configuration menu
    Copy the full SHA
    a718c82 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2015

  1. Revert commit a718c82

    kymckay committed Nov 18, 2015
    Configuration menu
    Copy the full SHA
    49d4f23 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into fixForEachDeleteAt

    # Conflicts:
    #	addons/common/XEH_postInit.sqf
    kymckay committed Nov 18, 2015
    Configuration menu
    Copy the full SHA
    d1dff4a View commit details
    Browse the repository at this point in the history