diff --git a/dGame/Entity.cpp b/dGame/Entity.cpp index 36099ed8..43dd2aa5 100644 --- a/dGame/Entity.cpp +++ b/dGame/Entity.cpp @@ -710,7 +710,7 @@ void Entity::Initialize() { } else if (path->pathType == PathType::Movement) { auto movementAIcomp = GetComponent(); if (!movementAIcomp) { - movementAIcomp = new MovementAIComponent(this, {}); + movementAIcomp = new MovementAIComponent(this, MovementAIInfo()); m_Components.insert(std::make_pair(eReplicaComponentType::MOVEMENT_AI, movementAIcomp)); } movementAIcomp->SetupPath(pathName); diff --git a/dScripts/ai/MINIGAME/SG_GF/SERVER/SGCannon.cpp b/dScripts/ai/MINIGAME/SG_GF/SERVER/SGCannon.cpp index 1b838d80..31c890e1 100644 --- a/dScripts/ai/MINIGAME/SG_GF/SERVER/SGCannon.cpp +++ b/dScripts/ai/MINIGAME/SG_GF/SERVER/SGCannon.cpp @@ -289,7 +289,7 @@ void SGCannon::OnActivityTimerDone(Entity* self, const std::string& name) { auto* movementAI = enemy->GetComponent(); if (!movementAI) { - movementAI = new MovementAIComponent(enemy, {}); + movementAI = new MovementAIComponent(enemy, MovementAIInfo()); enemy->AddComponent(eReplicaComponentType::MOVEMENT_AI, movementAI); }