mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-26 03:08:26 +00:00
Remove shared pointer, ODR of componentType variable
This commit is contained in:
@@ -190,7 +190,7 @@ void BaseCombatAIComponent::Update(const float deltaTime) {
|
||||
}
|
||||
|
||||
if (m_MovementAI == nullptr) {
|
||||
m_MovementAI = m_OwningEntity->GetSharedComponent<MovementAIComponent>();
|
||||
m_MovementAI = m_OwningEntity->GetComponent<MovementAIComponent>();
|
||||
if (m_MovementAI == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user