fixed crash when gamedata is missing
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40557
This commit is contained in:
parent
27f239b639
commit
f7df18f6fd
@ -230,7 +230,7 @@ bool CGameConfig::Reparse(char *error, size_t maxlength)
|
||||
if (error && (err != SMCParse_Custom))
|
||||
{
|
||||
const char *str = g_TextParser.GetSMCErrorString(err);
|
||||
snprintf(error, maxlength, "%s", err);
|
||||
snprintf(error, maxlength, "%s", str);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user