Skip to content

Commit

Permalink
🔨 Fixed a typo in random generator (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedSobhy01 authored May 16, 2024
1 parent 255544d commit 19a3f75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RandomGenerator/RandomGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 19a3f75

Please sign in to comment.