diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-03-30 00:31:56 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-03-30 01:01:51 +0200 |
commit | b9a64733eccac3197d0c768050577aa2e6f59249 (patch) | |
tree | f44be33cc54c7189d592556aefa4d3e3be971df6 /src/AssetManager.cpp | |
parent | Improved frustum culling: replaced box testing to sphere testing #6 (diff) | |
download | AltCraft-b9a64733eccac3197d0c768050577aa2e6f59249.tar AltCraft-b9a64733eccac3197d0c768050577aa2e6f59249.tar.gz AltCraft-b9a64733eccac3197d0c768050577aa2e6f59249.tar.bz2 AltCraft-b9a64733eccac3197d0c768050577aa2e6f59249.tar.lz AltCraft-b9a64733eccac3197d0c768050577aa2e6f59249.tar.xz AltCraft-b9a64733eccac3197d0c768050577aa2e6f59249.tar.zst AltCraft-b9a64733eccac3197d0c768050577aa2e6f59249.zip |
Diffstat (limited to 'src/AssetManager.cpp')
-rw-r--r-- | src/AssetManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AssetManager.cpp b/src/AssetManager.cpp index bffc246..f5284a4 100644 --- a/src/AssetManager.cpp +++ b/src/AssetManager.cpp @@ -235,7 +235,7 @@ const BlockModel *AssetManager::GetBlockModelByBlockId(BlockId block) { std::string blockName = blockIdToBlockName[block]; auto modelIt = models.find(blockName); - return (modelIt == models.end()) ? nullptr : &modelIt->second; + return (modelIt == models.end()) ? GetBlockModelByBlockId(BlockId{ 57,0 }) : &modelIt->second; } void AssetManager::LoadBlockModels() { |