mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-12-20 03:30:18 +00:00
Remove shared pointer, ODR of componentType variable
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
class SwitchComponent : public Component {
|
||||
public:
|
||||
static const eReplicaComponentType ComponentType = eReplicaComponentType::SWITCH;
|
||||
inline static const eReplicaComponentType ComponentType = eReplicaComponentType::SWITCH;
|
||||
|
||||
SwitchComponent(Entity* parent);
|
||||
~SwitchComponent() override;
|
||||
@@ -75,7 +75,7 @@ private:
|
||||
/**
|
||||
* Attached rebuild component.
|
||||
*/
|
||||
std::shared_ptr<RebuildComponent> m_Rebuild;
|
||||
RebuildComponent* m_Rebuild;
|
||||
|
||||
/**
|
||||
* If the switch is on or off.
|
||||
|
||||
Reference in New Issue
Block a user