X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.cpp;h=dcd824e32243e3a51504ca1a9b286ad49dda4094;hb=0ad5ca97b5df217329bc319d62564a9f46ba11d7;hp=d309502301f98213036ff0ca11a6b6e9fd799f54;hpb=3f9f41338d8100a719e161a3a1cdda9dd227e2b4;p=l2e.git diff --git a/src/battle/BattleState.cpp b/src/battle/BattleState.cpp index d309502..dcd824e 100644 --- a/src/battle/BattleState.cpp +++ b/src/battle/BattleState.cpp @@ -12,6 +12,7 @@ #include "states/PerformAttacks.h" #include "../app/Application.h" #include "../app/Input.h" +#include "../common/GameState.h" #include "../common/Ikari.h" #include "../common/Inventory.h" #include "../common/Item.h" @@ -115,7 +116,7 @@ void BattleState::EnterState(Application &ctrl, SDL_Surface *screen) { } void BattleState::LoadInventory() { - const Inventory &inv(*res->inventory); + const Inventory &inv(game->state->inventory); itemMenu.Clear(); itemMenu.Reserve(inv.MaxItems()); for (int i(0); i < inv.MaxItems(); ++i) {