mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fix crash
This commit is contained in:
parent
3d60f079fb
commit
f79e5a82d3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user