diff --git a/inGameAppState.cpp b/inGameAppState.cpp index 1013194..8f800a1 100755 --- a/inGameAppState.cpp +++ b/inGameAppState.cpp @@ -75,6 +75,7 @@ namespace battleship{ stateManager->attachAppState(activeState); Game::getSingleton()->updateLuaPlayers(true); + Map::Minimap::getSingleton()->updateImage(); } void InGameAppState::onDettached() { diff --git a/unit.cpp b/unit.cpp index c7fc9a2..fcee7e1 100755 --- a/unit.cpp +++ b/unit.cpp @@ -523,7 +523,7 @@ namespace battleship{ ActiveGameState *activeState = (ActiveGameState*)GameManager::getSingleton()->getStateManager()->getAppStateByType(AppStateType::ACTIVE_STATE); if(activeState && activeState->getPlayer()) - Map::Minimap::getSingleton()->updateImage(); + Map::Minimap::getSingleton()->updateImage(); } vector Unit::getSelectingPlayers(){