From f7df18f6fdc8edf49bf240f4c2005a2f088c76a3 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 1 Mar 2007 16:35:06 +0000 Subject: [PATCH] fixed crash when gamedata is missing --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40557 --- core/CGameConfigs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/CGameConfigs.cpp b/core/CGameConfigs.cpp index 31daf969..048704cc 100644 --- a/core/CGameConfigs.cpp +++ b/core/CGameConfigs.cpp @@ -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; }