]> git.localhorst.tv Git - l2e.git/commitdiff
fixed return type of spell menu getter in battle state
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 8 Aug 2012 22:00:05 +0000 (00:00 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 8 Aug 2012 22:00:05 +0000 (00:00 +0200)
I am one lousy stinkin bastard :(

src/battle/BattleState.h

index 365f1983305fcb3de5139b295cb89947c6db2dd0..f6890f3d40d35c261b0188cdc51679586671f42c 100644 (file)
@@ -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</* Spell */ void *> GetSpellMenu() const { return spellMenus[activeHero]; }
+       graphics::Menu</* Spell */ void *> &GetSpellMenu() { return spellMenus[activeHero]; }
+       const graphics::Menu</* Spell */ void *> &GetSpellMenu() const { return spellMenus[activeHero]; }
 
 public:
        geometry::Vector<int> CalculateScreenOffset(SDL_Surface *screen) const {