Ticket #3769: patch3769.diff

File patch3769.diff, 662 bytes (added by fatherbushido, 8 years ago)

patch

  • binaries/data/mods/public/simulation/components/AuraManager.js

     
    174174    var usedKeys = new Set();
    175175    var add = 0;
    176176    var multiply = 1;
    177     for (let c in cache)
     177    for (let c of cache.keys())
    178178    {
    179179        if (!MatchesClassList(classes, c))
    180180            continue;
    181181
    182         for (let key in cache.get(c))
     182        for (let key of (cache.get(c)).keys())
    183183        {
    184184            // don't add an aura with the same key twice
    185185            if (usedKeys.has(key))