mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-09 08:58:04 +00:00
Use proper initializer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user