1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix crash

This commit is contained in:
nordsoft 2022-11-12 08:41:34 +04:00
parent 3d60f079fb
commit f79e5a82d3

View File

@ -123,7 +123,7 @@ void MainWindow::startGame(const QStringList & args)
__argv[0] = "vcmiclient";
for(int i = 1; i < __argc; ++i)
{
const char * s = args[i].toLocal8Bit().constData();
const char * s = args[i - 1].toLocal8Bit().constData();
__argv[i] = new char[strlen(s)];
strcpy(__argv[i], s);
}