From: Daniel Karbach Date: Wed, 8 Aug 2012 22:00:05 +0000 (+0200) Subject: fixed return type of spell menu getter in battle state X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=bbce802e95cf239b35eb82d5dc539f118ec0c5ad;p=l2e.git fixed return type of spell menu getter in battle state I am one lousy stinkin bastard :( --- diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index 365f198..f6890f3 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -78,7 +78,8 @@ public: bool HasChosenAttackType() const { return attackChoices[activeHero].GetType() != AttackChoice::UNDECIDED; } void SetAttackType(AttackChoice::Type t) { attackChoices[activeHero].SetType(t); } bool AttackSelectionDone() const { return activeHero >= (int) heroes.size(); } - const graphics::Menu GetSpellMenu() const { return spellMenus[activeHero]; } + graphics::Menu &GetSpellMenu() { return spellMenus[activeHero]; } + const graphics::Menu &GetSpellMenu() const { return spellMenus[activeHero]; } public: geometry::Vector CalculateScreenOffset(SDL_Surface *screen) const {