mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-21 09:26:20 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user