1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 14:09:06 +00:00

Fix crash in script warning

This commit is contained in:
fgenesis 2012-09-23 03:48:14 +02:00
parent e29d4e65bd
commit cb745baa5e

View file

@ -658,7 +658,7 @@ luaFunc(newindexWarnGlobal)
{
std::ostringstream os;
os << "WARNING: script set global "
<< lua_typename(L, -2)
<< lua_typename(L, lua_type(L, -2))
<< " " << varname;
scriptError(L, os.str());
}