Some emplace_back replacements (#5149)
* replace push_back with emplace_back when a new object was created in the function call
This commit is contained in:
@@ -51,7 +51,7 @@ void cChunkStay::Add(int a_ChunkX, int a_ChunkZ)
|
||||
return;
|
||||
}
|
||||
} // for itr - Chunks[]
|
||||
m_Chunks.push_back(cChunkCoords(a_ChunkX, a_ChunkZ));
|
||||
m_Chunks.emplace_back(a_ChunkX, a_ChunkZ);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user