Commit 7bf371f7 authored by DailyShana's avatar DailyShana

fix

parent ad3748f0
......@@ -252,7 +252,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
wchar_t* cmd = new wchar_t[MAX_PATH];
wchar_t cmd[MAX_PATH];
int flag = 0;
flag += (mainGame->chkBotHand->isChecked() ? 0x1 : 0);
myswprintf(cmd, L"Bot.exe \"%ls\" %d %d", mainGame->botInfo[sel].command, flag, mainGame->gameConf.serverport);
......
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