diff --git a/RandomGenerator/RandomGenerator.cpp b/RandomGenerator/RandomGenerator.cpp index 3a4c267..f178382 100644 --- a/RandomGenerator/RandomGenerator.cpp +++ b/RandomGenerator/RandomGenerator.cpp @@ -33,7 +33,7 @@ void RandomGenerator::generateUnits() Unit* newUnit = nullptr; // Generate N units - for (int i = 0; i < N; i++) + for (int j = 0; j < N; j++) { // Don't forget to handle no generation in allied army newUnit = generateUnit(armyTypes[i]);