summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_mapgen.cpp
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2021-01-21 19:08:06 +0000
committerGitHub <noreply@github.com>2021-01-21 19:08:06 +0000
commit4fcd000e20a26120349184cb9d40342b7876e6b8 (patch)
tree978429b471474d5c01c587dffc660cec659275f3 /src/script/lua_api/l_mapgen.cpp
parent8ff209c4122fb83310939bf1b73f56b704a3c982 (diff)
downloadminetest-4fcd000e20a26120349184cb9d40342b7876e6b8.tar.gz
minetest-4fcd000e20a26120349184cb9d40342b7876e6b8.tar.bz2
minetest-4fcd000e20a26120349184cb9d40342b7876e6b8.zip
MgOre: Fix invalid field polymorphism (#10846)
Diffstat (limited to 'src/script/lua_api/l_mapgen.cpp')
-rw-r--r--src/script/lua_api/l_mapgen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index 498859f14..fad08e1f6 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -1335,7 +1335,7 @@ int ModApiMapgen::l_register_ore(lua_State *L)
lua_getfield(L, index, "noise_params");
if (read_noiseparams(L, -1, &ore->np)) {
ore->flags |= OREFLAG_USE_NOISE;
- } else if (ore->NEEDS_NOISE) {
+ } else if (ore->needs_noise) {
errorstream << "register_ore: specified ore type requires valid "
"'noise_params' parameter" << std::endl;
delete ore;