From 8bf18d2e1da6ee7c57383bbf57d10326d5a6bfb4 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 23 Oct 2020 05:07:09 +0800 Subject: [PATCH] Improve error message, kaetemi/ryzomclassic#120 --- nel/include/nel/gui/lua_helper_inline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nel/include/nel/gui/lua_helper_inline.h b/nel/include/nel/gui/lua_helper_inline.h index 0d380bbf1..5dbc3cef4 100644 --- a/nel/include/nel/gui/lua_helper_inline.h +++ b/nel/include/nel/gui/lua_helper_inline.h @@ -263,8 +263,8 @@ inline lua_Integer CLuaState::toInteger(int index) if (!isnum) { lua_Number d = lua_tonumber(_State, index); - nlwarning("Lua: Unable to convert Lua number %lf to integer", d); res = (lua_Integer)d; + nlwarning("Lua: Converting lua_Number %lf to lua_Integer %i", d, (int)res); } return res; #else