minetest/src/script/common
est31 836486a98e Fix crash regression when invsize formspec gets used
The invsize formspec element is outdated. Even though,
it is still supported, only a deprecation warning is shown,
introduced by commit [1]. The lua context passed to the
log_deprecated method added by commit [1] is NULL for the
invsize deprecation warning, as its run on the client and not
the server.

Commit [1] has removed checks for NULL inside the log_deprecated
method, resulting in a crash when a formspec with an invsize
element is parsed. This commit puts the check back.

Fixes #3260.

Referenced commits:

[1]: b5acec0a3c "Add proper lua api deprecated handling"

[2]: 7b8d372947 "Use warningstream for deprecated field messages and refactor log_deprecated"
2015-10-17 01:29:05 +02:00
..
CMakeLists.txt Clean up and tweak build system 2015-03-27 15:00:48 -04:00
c_content.cpp Use warningstream for deprecated field messages and refactor log_deprecated 2015-10-15 01:14:38 -04:00
c_content.h Fix tiling issues for PLANTLIKE and FIRELIKE with FSAA 2015-08-05 22:52:32 +02:00
c_converter.cpp Add some missing getter functions to the lua API 2015-05-28 16:46:35 +02:00
c_converter.h Fix code style from recent commits and add misc. optimizations 2015-07-02 23:14:30 -04:00
c_internal.cpp Fix crash regression when invsize formspec gets used 2015-10-17 01:29:05 +02:00
c_internal.h Push error handler afresh each time lua_pcall is used 2015-08-27 01:56:06 +02:00
c_types.cpp Remove lua_State parameter from LuaError::LuaError 2014-03-15 16:28:59 -04:00
c_types.h Remove lua_State parameter from LuaError::LuaError 2014-03-15 16:28:59 -04:00