]> git.localhorst.tv Git - l2e.git/commitdiff
fixed clear call in battle state
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 4 Nov 2012 17:15:02 +0000 (18:15 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 4 Nov 2012 17:15:02 +0000 (18:15 +0100)
src/battle/BattleState.cpp

index be1ef34155571d65ccdf5a6923eddf47c38a781d..7c8b3306e8c29947c9a4868c8de8c2d20c8f408f 100644 (file)
@@ -113,6 +113,7 @@ void BattleState::OnEnterState(SDL_Surface *screen) {
 
        itemMenu = *res->itemMenuProperties;
        LoadInventory();
+       ClearAllAttacks();
 }
 
 void BattleState::LoadInventory() {
@@ -127,7 +128,6 @@ void BattleState::LoadInventory() {
                        itemMenu.AddEmptyEntry();
                }
        }
-       ClearAllAttacks();
 }
 
 void BattleState::OnExitState(SDL_Surface *screen) {