From 787b6fcd2dc9f9ecc0ad3264924ab21ca89aa0bd Mon Sep 17 00:00:00 2001 From: radumsk Date: Mon, 15 May 2023 12:49:41 +0300 Subject: [PATCH] Bifeee --- Characteristics.cpp | 6 +++--- Characteristics.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Characteristics.cpp b/Characteristics.cpp index e6ceda3..02e6a0c 100644 --- a/Characteristics.cpp +++ b/Characteristics.cpp @@ -12,11 +12,11 @@ float Characteristics::getMatching(const Characteristics &c) { return ret; } -void Characteristics::updateCharacteristics(const Characteristics &characteristics, int multiplier) { +void Characteristics::updateCharacteristics(const Characteristics &extra, int multiplier) { for (int i = 0; i < 4; i++) - if (characteristics.characteristics[i].getVal() != 0) + if (extra.characteristics[i].getVal() != 0) for (int j = 0; j < multiplier; j++) - this->characteristics[i].addRating(characteristics.characteristics[i].getVal()); + this->characteristics[i].addRating(extra.characteristics[i].getVal()); } Characteristics::Characteristics(int a, int b, int c, int d) { diff --git a/Characteristics.h b/Characteristics.h index 8f5a84b..dd70bc6 100644 --- a/Characteristics.h +++ b/Characteristics.h @@ -19,7 +19,7 @@ class Characteristics { float getMatching(const Characteristics &c); - void updateCharacteristics(const Characteristics &characteristics, int multiplier); + void updateCharacteristics(const Characteristics &extra, int multiplier); }; #endif //OOP_CHARACTERISTICS_H