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);