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

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