Fix warning introduced in the mirage cleanup, 905763004a

Iterating using a for..in over an array returns the indices as string,
not number, which C++ did not accept.

Differential Revision: https://code.wildfiregames.com/D1864
This was SVN commit r22254.
This commit is contained in:
wraitii
2019-05-08 19:24:20 +00:00
parent 809f297707
commit 2584cbf69a
@@ -192,7 +192,7 @@ Fogging.prototype.OnOwnershipChanged = function(msg)
return;
let cmpRangeManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_RangeManager);
for (let player in this.mirages)
for (let player = 0; player < this.mirages.length; ++player)
{
if (this.mirages[player] == INVALID_ENTITY)
continue;