From de5cb9d26b3922f44adacbec1805a27619dca16c Mon Sep 17 00:00:00 2001 From: Tobias Boege Date: Thu, 23 May 2019 19:49:06 +0200 Subject: [PATCH] Make Gambas/Invaders example compile [EXAMPLES] * BUG: Make Games/Invaders compile --- app/examples/Games/Invaders/.src/Enemies.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/examples/Games/Invaders/.src/Enemies.class b/app/examples/Games/Invaders/.src/Enemies.class index 1bebb9d9a..11e68f9e9 100644 --- a/app/examples/Games/Invaders/.src/Enemies.class +++ b/app/examples/Games/Invaders/.src/Enemies.class @@ -76,7 +76,7 @@ Public Sub Enemy_Destroyed() $aEnemies.Add(hEnemy, iInd + iJ) iShift += hEnemy.Width Next - For iInd += iAdd + 1 To $aEnemies.Max + For iInd = iInd + iAdd + 1 To $aEnemies.Max $aEnemies[iInd].Move(iShift - Last.Width) Next _Out: