diff --git a/RandomGenerator/RandomGenerator.cpp b/RandomGenerator/RandomGenerator.cpp index 93dd514..edb4022 100644 --- a/RandomGenerator/RandomGenerator.cpp +++ b/RandomGenerator/RandomGenerator.cpp @@ -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; } @@ -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; }