Skip to content

Commit

Permalink
📝 Fixed a typo in Random Generator setter
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedSobhy01 committed Apr 20, 2024
1 parent 53ba71a commit cc3994c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RandomGenerator/RandomGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ void RandomGenerator::setEarthParameters(int ESPercentage, int ETPercentage, int
this->EGPercentage = EGPercentage;

this->earthPowerRange = earthPowerRange;
this->earthPowerRange = earthHealthRange;
this->earthHealthRange = earthHealthRange;
this->earthAttackCapacityRange = earthAttackCapacityRange;
}

Expand All @@ -115,6 +115,6 @@ void RandomGenerator::setAlienParameters(int ASPercentage, int AMPercentage, int
this->ADPercentage = ADPercentage;

this->alienPowerRange = alienPowerRange;
this->alienPowerRange = alienHealthRange;
this->alienHealthRange = alienHealthRange;
this->alienAttackCapacityRange = alienAttackCapacityRange;
}

0 comments on commit cc3994c

Please sign in to comment.