summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_env.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-05-14 07:42:20 +0200
committerSmallJoker <mk939@ymail.com>2018-06-03 17:32:00 +0200
commit695d02e6bda939f7b00af402273b39a8fd75a203 (patch)
tree30e075240af7397fd933852e20f812417bb93b45 /src/script/lua_api/l_env.cpp
parente2815d27f16f20c503c34b9a0ab4f917dcab639b (diff)
downloadminetest-695d02e6bda939f7b00af402273b39a8fd75a203.tar.gz
minetest-695d02e6bda939f7b00af402273b39a8fd75a203.tar.bz2
minetest-695d02e6bda939f7b00af402273b39a8fd75a203.zip
More C++03 fixes
Diffstat (limited to 'src/script/lua_api/l_env.cpp')
-rw-r--r--src/script/lua_api/l_env.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp
index 4a7885da7..630f6cc64 100644
--- a/src/script/lua_api/l_env.cpp
+++ b/src/script/lua_api/l_env.cpp
@@ -292,7 +292,7 @@ int ModApiEnvMod::l_place_node(lua_State *L)
pointed.node_abovesurface = pos;
pointed.node_undersurface = pos + v3s16(0,-1,0);
// Place it with a NULL placer (appears in Lua as nil)
- bool success = scriptIfaceItem->item_OnPlace(item, nullptr, pointed);
+ bool success = scriptIfaceItem->item_OnPlace(item, NULL, pointed);
lua_pushboolean(L, success);
return 1;
}
@@ -676,7 +676,7 @@ int ModApiEnvMod::l_find_nodes_in_area(lua_State *L)
ndef->getIds(lua_tostring(L, 3), filter);
}
- std::unordered_map<content_t, u32> individual_count;
+ UNORDERED_MAP<content_t, u32> individual_count;
lua_newtable(L);
u64 i = 0;