aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/serverenvironment.cpp2
-rw-r--r--src/serverenvironment.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/serverenvironment.cpp b/src/serverenvironment.cpp
index 11c71e28e..bf4b3c0e3 100644
--- a/src/serverenvironment.cpp
+++ b/src/serverenvironment.cpp
@@ -109,7 +109,7 @@ void LBMContentMapping::addLBM(LoadingBlockModifierDef *lbm_def, IGameDef *gamed
const std::vector<LoadingBlockModifierDef *> *
LBMContentMapping::lookup(content_t c) const
{
- container_map::const_iterator it = map.find(c);
+ lbm_map::const_iterator it = map.find(c);
if (it == map.end())
return NULL;
// This first dereferences the iterator, returning
diff --git a/src/serverenvironment.h b/src/serverenvironment.h
index 48eb5b318..4cfe7f7d6 100644
--- a/src/serverenvironment.h
+++ b/src/serverenvironment.h
@@ -88,8 +88,8 @@ struct LoadingBlockModifierDef
struct LBMContentMapping
{
- typedef std::map<content_t, std::vector<LoadingBlockModifierDef *> > container_map;
- container_map map;
+ typedef std::unordered_map<content_t, std::vector<LoadingBlockModifierDef *>> lbm_map;
+ lbm_map map;
std::vector<LoadingBlockModifierDef *> lbm_list;