From a8c405b04ea1be927d8ebc753ce7ccb46cfdd4f9 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Tue, 18 Jul 2017 08:23:37 +0200 Subject: LBM content mapping map doesn't need to be ordered, use std::unordered_map Also rename helper to lbm_map instead of container_map --- src/serverenvironment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/serverenvironment.cpp') 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 * 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 -- cgit v1.2.3