From cb745baa5e03ce1f66eca41116415509aa704e02 Mon Sep 17 00:00:00 2001 From: fgenesis Date: Sun, 23 Sep 2012 03:48:14 +0200 Subject: [PATCH] Fix crash in script warning --- Aquaria/ScriptInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Aquaria/ScriptInterface.cpp b/Aquaria/ScriptInterface.cpp index 03858f1..da05ce7 100644 --- a/Aquaria/ScriptInterface.cpp +++ b/Aquaria/ScriptInterface.cpp @@ -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()); }