From cc3994c5f31b3b936f2db69816d9297549edf94c Mon Sep 17 00:00:00 2001 From: AhmedSobhy01 Date: Sat, 20 Apr 2024 20:10:34 +0200 Subject: [PATCH] :pencil: Fixed a typo in Random Generator setter --- RandomGenerator/RandomGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }