Make GetRandom in Battle class a pointer.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -69,7 +69,7 @@ void Battle::CheckChoicesSetAndRun() {
|
||||
|
||||
ChoiceQueue* Battle::GetCurrentTurnQueue() const { return _currentTurnQueue; }
|
||||
|
||||
BattleRandom& Battle::GetRandom() { return _random; }
|
||||
BattleRandom* Battle::GetRandom() { return &_random; }
|
||||
|
||||
bool Battle::CreatureInField(const Creature* creature) const {
|
||||
for (auto s : _sides) {
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace CreatureLib::Battling {
|
||||
void CheckChoicesSetAndRun();
|
||||
|
||||
[[nodiscard]] ChoiceQueue* GetCurrentTurnQueue() const;
|
||||
BattleRandom& GetRandom();
|
||||
BattleRandom* GetRandom();
|
||||
|
||||
bool CreatureInField(const Creature* creature) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user