Use legal printf format strings when logging.

This commit is contained in:
Forest
2014-09-08 02:23:45 -07:00
parent 33a9b042b2
commit 96501df3d7
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -816,12 +816,12 @@ try_element_again:
goto try_element_again;
case Dialog::ignore:
{
RString error= sCategory + '/' + sFileName +
" could not be found in \"" +
GetThemeDirFromName(m_sCurThemeName).c_str() + "\" or \"" +
GetThemeDirFromName(SpecialFiles::BASE_THEME_NAME).c_str() + "\".";
LOG->UserLog("Theme element", "%s", error.c_str());
LOG->Warn(error.c_str());
RString element = sCategory + '/' + sFileName;
RString error = "could not be found in \"" +
GetThemeDirFromName(m_sCurThemeName) + "\" or \"" +
GetThemeDirFromName(SpecialFiles::BASE_THEME_NAME) + "\".";
LOG->UserLog("Theme element", element.c_str(), "%s", error.c_str());
LOG->Warn( "%s %s", element.c_str(), error.c_str());
LuaHelpers::ScriptErrorMessage(error);
}