diff --git a/src/Battling/Library/BattleLibrary.cpp b/src/Battling/Library/BattleLibrary.cpp index d2bc271..c457af8 100644 --- a/src/Battling/Library/BattleLibrary.cpp +++ b/src/Battling/Library/BattleLibrary.cpp @@ -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(); } diff --git a/src/Battling/Library/BattleLibrary.hpp b/src/Battling/Library/BattleLibrary.hpp index bf3c97d..3ed2842 100644 --- a/src/Battling/Library/BattleLibrary.hpp +++ b/src/Battling/Library/BattleLibrary.hpp @@ -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;