mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-23 13:10:19 +00:00
Remove shared pointer, ODR of componentType variable
This commit is contained in:
@@ -21,7 +21,7 @@ enum class PetAbilityType
|
||||
class PetComponent : public Component
|
||||
{
|
||||
public:
|
||||
static const eReplicaComponentType ComponentType = eReplicaComponentType::PET;
|
||||
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::PET;
|
||||
|
||||
explicit PetComponent(Entity* parentEntity, uint32_t componentId);
|
||||
~PetComponent() override;
|
||||
@@ -349,7 +349,7 @@ private:
|
||||
/**
|
||||
* The movement AI component that is related to this pet, required to move it around
|
||||
*/
|
||||
std::shared_ptr<MovementAIComponent> m_MovementAI;
|
||||
MovementAIComponent* m_MovementAI;
|
||||
|
||||
/**
|
||||
* Preconditions that need to be met before an entity can tame this pet
|
||||
|
||||
Reference in New Issue
Block a user