Pass settings by reference instead of value.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2019-10-25 20:14:24 +02:00
parent 7d6de3557c
commit 3938500595
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ CreatureLib::Battling::BattleLibrary::~BattleLibrary() {
delete _statCalculator;
}
const CreatureLib::Library::LibrarySettings CreatureLib::Battling::BattleLibrary::GetSettings() const {
const CreatureLib::Library::LibrarySettings& CreatureLib::Battling::BattleLibrary::GetSettings() const {
return _staticLib->GetSettings();
}

View File

@ -12,7 +12,7 @@ namespace CreatureLib::Battling {
BattleLibrary(Library::DataLibrary* staticLib, BattleStatCalculator* statCalculator);
~BattleLibrary();
const Library::LibrarySettings GetSettings() const;
const Library::LibrarySettings& GetSettings() const;
const Library::SpeciesLibrary* GetSpeciesLibrary() const;
const Library::ItemLibrary* GetItemLibrary() const;
const Library::AttackLibrary* GetAttackLibrary() const;