aboutsummaryrefslogtreecommitdiff
path: root/src/settings.h
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2021-07-31 17:54:40 +0000
committerGitHub <noreply@github.com>2021-07-31 19:54:40 +0200
commite7cd4cfa25485610c05a906859e8365158a13f69 (patch)
treea7160e8a470fc3fe59e1b944cf0f5e9135d5d4e3 /src/settings.h
parent0257e7150f4c6dfe7b10802ada938143253c1773 (diff)
downloadhax-minetest-server-e7cd4cfa25485610c05a906859e8365158a13f69.tar.gz
hax-minetest-server-e7cd4cfa25485610c05a906859e8365158a13f69.zip
Fix /emergeblocks crashing in debug builds (#11461)
The reason for the bug was an u16 overflow, thus failing the assert. This only happened in Debug build but not in Release builds.
Diffstat (limited to '')
-rw-r--r--src/settings.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.h b/src/settings.h
index 7791413b9..4e32a3488 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -186,6 +186,7 @@ public:
bool getFlag(const std::string &name) const;
bool getU16NoEx(const std::string &name, u16 &val) const;
bool getS16NoEx(const std::string &name, s16 &val) const;
+ bool getU32NoEx(const std::string &name, u32 &val) const;
bool getS32NoEx(const std::string &name, s32 &val) const;
bool getU64NoEx(const std::string &name, u64 &val) const;
bool getFloatNoEx(const std::string &name, float &val) const;