Commit 3e277017 authored by fallenstardust's avatar fallenstardust

fix

parent b9787d35
...@@ -366,7 +366,6 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) { ...@@ -366,7 +366,6 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
mainGame->btnBotCancel->setEnabled(false); mainGame->btnBotCancel->setEnabled(false);
break; break;
} }
case BUTTON_LOAD_SINGLEPLAY: { case BUTTON_LOAD_SINGLEPLAY: {
mainGame->soundEffectPlayer->doPressButton(); mainGame->soundEffectPlayer->doPressButton();
if(mainGame->lstSinglePlayList->getSelected() == -1) if(mainGame->lstSinglePlayList->getSelected() == -1)
...@@ -525,6 +524,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) { ...@@ -525,6 +524,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
message.append(wlinebuf); message.append(wlinebuf);
} }
} }
fclose(fp);
mainGame->SetStaticText(mainGame->stSinglePlayInfo, 200 * mainGame->xScale, mainGame->guiFont, message.c_str()); mainGame->SetStaticText(mainGame->stSinglePlayInfo, 200 * mainGame->xScale, mainGame->guiFont, message.c_str());
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment