diff --git a/src/game-lib-component-follow.js b/src/game-lib-component-follow.js index 08cf098..ac5bdd1 100644 --- a/src/game-lib-component-follow.js +++ b/src/game-lib-component-follow.js @@ -27,7 +27,7 @@ GameLib.D3.ComponentFollow = function ComponentFollow( GameLib.D3.Utils.Extend(GameLib.D3.ComponentFollow, GameLib.D3.ComponentInterface); if (GameLib.D3.Utils.UndefinedOrNull(targetEntity)) { - targetEntity = new GameLib.D3.Entity(); + targetEntity = null; } this.targetEntity = targetEntity;