Pass settings by reference instead of value.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7d6de3557c
commit
3938500595
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue