Move world on unordered_map and object_ptr
This commit is contained in:
@@ -991,7 +991,7 @@ RenderEngine::~RenderEngine()
|
||||
void RenderEngine::start()
|
||||
{
|
||||
World* world = core_.GetGameInstance()->GetWorld();
|
||||
std::vector<Mesh*> meshes = world->GetActorsByClass<Mesh>();
|
||||
std::vector<UType::object_ptr<Mesh>> meshes = world->GetActorsByClass<Mesh>();
|
||||
for (auto& i : meshes)
|
||||
i->load_model(i->GetModelName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user