Move world on unordered_map and object_ptr

This commit is contained in:
Jiga228
2025-10-18 14:26:22 +07:00
parent bed233e56c
commit 0ec86e3de8
8 changed files with 99 additions and 39 deletions
+1 -1
View File
@@ -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());