Use proper initializer

This commit is contained in:
David Markowitz 2023-08-08 00:19:44 -07:00
parent 1d4d1414e9
commit cceaa96415
2 changed files with 2 additions and 2 deletions

View File

@ -710,7 +710,7 @@ void Entity::Initialize() {
} else if (path->pathType == PathType::Movement) {
auto movementAIcomp = GetComponent<MovementAIComponent>();
if (!movementAIcomp) {
movementAIcomp = new MovementAIComponent(this, {});
movementAIcomp = new MovementAIComponent(this, MovementAIInfo());
m_Components.insert(std::make_pair(eReplicaComponentType::MOVEMENT_AI, movementAIcomp));
}
movementAIcomp->SetupPath(pathName);

View File

@ -289,7 +289,7 @@ void SGCannon::OnActivityTimerDone(Entity* self, const std::string& name) {
auto* movementAI = enemy->GetComponent<MovementAIComponent>();
if (!movementAI) {
movementAI = new MovementAIComponent(enemy, {});
movementAI = new MovementAIComponent(enemy, MovementAIInfo());
enemy->AddComponent(eReplicaComponentType::MOVEMENT_AI, movementAI);
}