diff --git a/src/components/orb.cpp b/src/components/orb.cpp index 0faf6dc..85dde2f 100644 --- a/src/components/orb.cpp +++ b/src/components/orb.cpp @@ -22,7 +22,7 @@ Point Orb::target() const void Orb::update() { auto mover = get(); - auto diff = Vec2(target() - entity()->position).normal(); + auto diff = Vec2f(target() - entity()->position).normal(); mover->speed = diff * speed; }