small code cleanup from cppcheck

This commit is contained in:
Mark Vejvoda 2013-11-01 05:43:01 +00:00
parent 9ef8076429
commit e7fb242716
2 changed files with 0 additions and 2 deletions

View File

@ -4217,7 +4217,6 @@ void MenuStateConnectedGame::FTPClient_CallbackEvent(string itemName,
}
void MenuStateConnectedGame::setupUIFromGameSettings(GameSettings *gameSettings, bool errorOnMissingData) {
Lang &lang= Lang::getInstance();
NetworkManager &networkManager= NetworkManager::getInstance();
ClientInterface *clientInterface = networkManager.getClientInterface();

View File

@ -1556,7 +1556,6 @@ void MenuStateCustomGame::PlayNow(bool saveGame) {
if(listBoxTechTree.getItemCount() <= 0) {
mainMessageBoxState=1;
Lang &lang= Lang::getInstance();
char szMsg[8096]="";
strcpy(szMsg,"Cannot start game.\nThere are no tech-trees!\n");
printf("%s",szMsg);