minetest/src/script
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]: b5acec0a3c5701c53854ff7afdf4008863e6e8df "Add proper lua api deprecated handling"

[2]: 7b8d372947aae232ddf598155e972bb4dda157a "Use warningstream for deprecated field messages and refactor log_deprecated"
2015-10-17 01:29:05 +02:00
..
common Fix crash regression when invsize formspec gets used 2015-10-17 01:29:05 +02:00
cpp_api Add new ContentParamType2 "CPT2_DEGROTATE" 2015-10-04 23:59:41 +02:00
lua_api Rename macros with two leading underscores 2015-10-14 02:39:37 -04:00
CMakeLists.txt Clean up and tweak build system 2015-03-27 15:00:48 -04:00
scripting_game.cpp Improve Script CPP API diagnostics 2015-08-05 21:13:03 -04:00
scripting_game.h Improve Script CPP API diagnostics 2015-08-05 21:13:03 -04:00
scripting_mainmenu.cpp Push error handler afresh each time lua_pcall is used 2015-08-27 01:56:06 +02:00
scripting_mainmenu.h Fix code style of async API 2014-04-27 16:15:53 -04:00