1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

LBM content mapping map doesn't need to be ordered, use std::unordered_map

Also rename helper to lbm_map instead of container_map
This commit is contained in:
Loic Blot 2017-07-18 08:23:37 +02:00
parent 14a1a712de
commit a8c405b04e
No known key found for this signature in database
GPG key ID: EFAA458E8C153987
2 changed files with 3 additions and 3 deletions

View file

@ -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;