Fixed LuaClass code

Former-commit-id: 2e6a36cc3864520c7d3504c64afb2375ec728c1b
This commit is contained in:
Lynix 2014-04-20 14:05:16 +02:00
parent 60cd7c8375
commit 20df395928
1 changed files with 2 additions and 2 deletions

View File

@ -225,9 +225,9 @@ int NzLuaClass<T>::SetterProxy(lua_State* state)
if (!setter(lua, instance))
{
std::size_t length;
const char* str = lua.Tostring(2, &length);
const char* str = lua.ToString(2, &length);
lua.Error("Class "\"" + info->name + "\" has no field \"" + NzString(str, length) + ')');
lua.Error("Class \"" + info->name + "\" has no field \"" + NzString(str, length) + ')');
}
return 1;