diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2021-03-07 17:31:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-07 17:31:43 +0100 |
commit | 3daf253b7f4ed8243e3262faee35219335e3e088 (patch) | |
tree | 72d7c719838d23c979fdc57f1d6053bab38d8275 /src/Generating/BioGen.cpp | |
parent | Mitigate MSVC crash (#5146) (diff) | |
download | cuberite-3daf253b7f4ed8243e3262faee35219335e3e088.tar cuberite-3daf253b7f4ed8243e3262faee35219335e3e088.tar.gz cuberite-3daf253b7f4ed8243e3262faee35219335e3e088.tar.bz2 cuberite-3daf253b7f4ed8243e3262faee35219335e3e088.tar.lz cuberite-3daf253b7f4ed8243e3262faee35219335e3e088.tar.xz cuberite-3daf253b7f4ed8243e3262faee35219335e3e088.tar.zst cuberite-3daf253b7f4ed8243e3262faee35219335e3e088.zip |
Diffstat (limited to 'src/Generating/BioGen.cpp')
-rw-r--r-- | src/Generating/BioGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Generating/BioGen.cpp b/src/Generating/BioGen.cpp index 99ed54cbd..9a97be006 100644 --- a/src/Generating/BioGen.cpp +++ b/src/Generating/BioGen.cpp @@ -145,7 +145,7 @@ cBioGenMulticache::cBioGenMulticache(const cBiomeGenPtr & a_BioGenToCache, size_ m_Caches.reserve(a_NumSubCaches); for (size_t i = 0; i < a_NumSubCaches; i++) { - m_Caches.push_back(cBiomeGenPtr(new cBioGenCache(a_BioGenToCache, a_SubCacheSize))); + m_Caches.emplace_back(new cBioGenCache(a_BioGenToCache, a_SubCacheSize)); } } |