mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-22 20:50:15 +00:00
Move to shared pointer
This commit is contained in:
@@ -57,7 +57,7 @@ struct MovementAIInfo {
|
||||
*/
|
||||
class MovementAIComponent : public Component {
|
||||
public:
|
||||
static const eReplicaComponentType ComponentType = eReplicaComponentType::MOVEMENT_AI;
|
||||
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::MOVEMENT_AI;
|
||||
|
||||
MovementAIComponent(Entity* parentEntity, MovementAIInfo info);
|
||||
~MovementAIComponent() override;
|
||||
@@ -310,7 +310,7 @@ private:
|
||||
/**
|
||||
* Optional direct link to the combat AI component of the parent entity
|
||||
*/
|
||||
BaseCombatAIComponent* m_BaseCombatAI = nullptr;
|
||||
std::shared_ptr<BaseCombatAIComponent> m_BaseCombatAI = nullptr;
|
||||
|
||||
/**
|
||||
* The path the entity is currently following
|
||||
|
||||
Reference in New Issue
Block a user