summaryrefslogtreecommitdiff
path: root/src/mg_decoration.cpp
diff options
context:
space:
mode:
authorNer'zhul <nerzhul@users.noreply.github.com>2016-08-10 12:08:05 +0200
committerest31 <est31@users.noreply.github.com>2016-08-10 12:08:05 +0200
commit058a869b70072aba8baea47e359c45e82daaf152 (patch)
treeb0dd1820e89975d7172836d4861d9ab2ae2b472d /src/mg_decoration.cpp
parent8df89db30e80eff2ebbf30f0331b8ab4906a410e (diff)
downloadminetest-058a869b70072aba8baea47e359c45e82daaf152.tar.gz
minetest-058a869b70072aba8baea47e359c45e82daaf152.tar.bz2
minetest-058a869b70072aba8baea47e359c45e82daaf152.zip
Permit usage of std::unordered_map & std::unorderered_set on c++11 compilers (#4430)
This fallback to std::map & std::set for older compilers Use UNORDERED_SET as an example in decoration and ore biome sets Use UNORDERED_MAP as an example in nameidmapping
Diffstat (limited to 'src/mg_decoration.cpp')
-rw-r--r--src/mg_decoration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mg_decoration.cpp b/src/mg_decoration.cpp
index 70dd9817a..127915b51 100644
--- a/src/mg_decoration.cpp
+++ b/src/mg_decoration.cpp
@@ -156,7 +156,7 @@ size_t Decoration::placeDeco(Mapgen *mg, u32 blockseed, v3s16 nmin, v3s16 nmax)
}
if (mg->biomemap) {
- std::set<u8>::iterator iter;
+ UNORDERED_SET<u8>::iterator iter;
if (!biomes.empty()) {
iter = biomes.find(mg->biomemap[mapindex]);