fixed crash when gamedata is missing

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40557
This commit is contained in:
David Anderson 2007-03-01 16:35:06 +00:00
parent 27f239b639
commit f7df18f6fd

View File

@ -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;
}