Use delete[] after new array[].

Found by cppcheck.
This commit is contained in:
Guus Sliepen 2011-08-24 14:46:34 +02:00
parent f2c91cbb19
commit b9fded8131
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ signed char addAlien()
randEnemy = CD_TRANSPORTSHIP; randEnemy = CD_TRANSPORTSHIP;
} }
delete(alienArray); delete[] alienArray;
enemy[index] = defEnemy[randEnemy]; enemy[index] = defEnemy[randEnemy];
enemy[index].active = 1; enemy[index].active = 1;