Fixed that themes weren't loaded through Themes context menu if RainThemes was not installed.

This commit is contained in:
Birunthan Mohanathas
2011-09-04 07:40:12 +00:00
parent 38b4c4d865
commit 8c1e7f2dfc
5 changed files with 72 additions and 119 deletions

View File

@ -78,7 +78,7 @@ void LuaManager::ReportErrors(lua_State* L)
}
std::wstring str = L"Script: ";
str += ConvertUTF8ToWide(error.c_str());
str += ConvertToWide(error.c_str());
Log(LOG_ERROR, str.c_str());
}
@ -100,7 +100,7 @@ void LuaManager::LuaLog(int nLevel, const char* format, ... )
_set_invalid_parameter_handler(oldHandler);
std::wstring str = ConvertUTF8ToWide(buffer);
std::wstring str = ConvertToWide(buffer);
Log(nLevel, str.c_str());
va_end(args);