Cleaned up all the places I was doing push_back({constructorvar1, constructorvar2}) to use emplace_back(constructorvar1, constructorvar2) every other use should be only for actually copying.
This commit is contained in:
parent
18a5f6bfa9
commit
3344181a47
6 changed files with 18 additions and 23 deletions
|
@ -8,10 +8,10 @@
|
|||
|
||||
|
||||
struct GameLevel {
|
||||
size_t index = 0;
|
||||
std::shared_ptr<Map> map = nullptr;
|
||||
std::shared_ptr<DinkyECS::World> world = nullptr;
|
||||
std::shared_ptr<lighting::LightRender> lights = nullptr;
|
||||
size_t index;
|
||||
std::shared_ptr<Map> map;
|
||||
std::shared_ptr<DinkyECS::World> world;
|
||||
std::shared_ptr<lighting::LightRender> lights;
|
||||
};
|
||||
|
||||
class LevelManager {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue