diff options
author | est31 <MTest31@outlook.com> | 2015-10-17 01:01:12 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-10-17 01:29:05 +0200 |
commit | 836486a98e7b09e25b97c9d989301ed9eb365b3b (patch) | |
tree | 621e22712a42dacb8573043b706d6a01eac8803c /src/util/srp.cpp | |
parent | b600bc30a9fbd92800dabad14a38f28f0ccdd28e (diff) | |
download | minetest-836486a98e7b09e25b97c9d989301ed9eb365b3b.tar.gz minetest-836486a98e7b09e25b97c9d989301ed9eb365b3b.tar.bz2 minetest-836486a98e7b09e25b97c9d989301ed9eb365b3b.zip |
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"
Diffstat (limited to 'src/util/srp.cpp')
0 files changed, 0 insertions, 0 deletions