diff --git a/dGame/Entity.cpp b/dGame/Entity.cpp index be08d99d..8838c0f8 100644 --- a/dGame/Entity.cpp +++ b/dGame/Entity.cpp @@ -699,10 +699,10 @@ void Entity::Initialize() { // else if we are a movement path } else if (path->pathType == PathType::Movement) { auto movementAIcomp = GetComponent(); - if (!movementAIcomp){ - // TODO: create movementAIcomp and set path - } else { + if (movementAIcomp){ // TODO: set path in existing movementAIComp + } else { + // TODO: create movementAIcomp and set path } } }