Minor bugfix: if an invalid kart name was specified on the

command line, it was not ignored (as stated), it would
result in STK aborting. Now this is just ignored.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13400 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-08-01 06:06:09 +00:00
parent 5efa7c8ad2
commit f9fa721a22

View File

@ -755,6 +755,7 @@ int handleCmdLine(int argc, char **argv)
{
Log::warn("main", "Kart '%s' not found, ignored.",
argv[i+1]);
i++; // ignore the next parameter, otherwise STK will abort
}
}
else // kart locked