From bbce802e95cf239b35eb82d5dc539f118ec0c5ad Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Thu, 9 Aug 2012 00:00:05 +0200 Subject: [PATCH] fixed return type of spell menu getter in battle state I am one lousy stinkin bastard :( --- src/battle/BattleState.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.2