diff options
author | UIS <uis9936@gmail.com> | 2020-12-10 13:23:59 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-06-24 10:48:13 +0200 |
commit | 33c756b38e94cef68b3f842c1c2f8bad9d4447a2 (patch) | |
tree | bbc7b421b350e50c37e55d951edf15dea5bf667a /src/AssetManager.cpp | |
parent | Shader optimization, removed unused argument from GetBlockInfo function (diff) | |
download | AltCraft-33c756b38e94cef68b3f842c1c2f8bad9d4447a2.tar AltCraft-33c756b38e94cef68b3f842c1c2f8bad9d4447a2.tar.gz AltCraft-33c756b38e94cef68b3f842c1c2f8bad9d4447a2.tar.bz2 AltCraft-33c756b38e94cef68b3f842c1c2f8bad9d4447a2.tar.lz AltCraft-33c756b38e94cef68b3f842c1c2f8bad9d4447a2.tar.xz AltCraft-33c756b38e94cef68b3f842c1c2f8bad9d4447a2.tar.zst AltCraft-33c756b38e94cef68b3f842c1c2f8bad9d4447a2.zip |
Diffstat (limited to 'src/AssetManager.cpp')
-rw-r--r-- | src/AssetManager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/AssetManager.cpp b/src/AssetManager.cpp index e3e0e05..63dc596 100644 --- a/src/AssetManager.cpp +++ b/src/AssetManager.cpp @@ -658,9 +658,7 @@ BlockFaces &AssetManager::GetBlockModelByBlockId(BlockId block) { blockFaces.faceDirectionVector[i] = Vector(roundf(vec.x), roundf(vec.y), roundf(vec.z)); } - blockIdToBlockFaces.insert(std::make_pair(block, blockFaces)); - - return blockIdToBlockFaces.find(block)->second; + return blockIdToBlockFaces.insert(std::make_pair(block, blockFaces)).first->second; } std::string AssetManager::GetAssetNameByBlockId(BlockId block) { |