Commit 844acfd7 authored by nanahira's avatar nanahira

fix

parent a65a474b
Pipeline #38144 failed with stages
in 2 minutes and 51 seconds
...@@ -609,7 +609,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) { ...@@ -609,7 +609,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
case LISTBOX_SERVER_LIST: { case LISTBOX_SERVER_LIST: {
int sel = mainGame->lstServerList->getSelected(); int sel = mainGame->lstServerList->getSelected();
auto target = sel == -1 ? L"" : dataManager._serverStrings[sel].second.c_str(); auto target = sel == -1 ? L"" : dataManager._serverStrings[sel].second.c_str();
wcscpy(mainGame->gameConf.lasthost, target); BufferIO::CopyWideString(target, mainGame->gameConf.lasthost);
mainGame->ebJoinHost->setText(target); mainGame->ebJoinHost->setText(target);
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