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