summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/progs/manaplus/gui/viewport.cpp4
-rw-r--r--src/vector.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/progs/manaplus/gui/viewport.cpp b/src/progs/manaplus/gui/viewport.cpp
index a4ca4959b..9eff3b347 100644
--- a/src/progs/manaplus/gui/viewport.cpp
+++ b/src/progs/manaplus/gui/viewport.cpp
@@ -317,10 +317,10 @@ void Viewport::drawDebugPath(Graphics *const graphics)
Gui::getMouseState(mMouseX, mMouseY);
static Path debugPath;
- static Vector lastMouseDestination = Vector(0.0F, 0.0F);
+ static Vector lastMouseDestination = Vector(0.0F, 0.0F, 0.0F);
const int mousePosX = mMouseX + mPixelViewX;
const int mousePosY = mMouseY + mPixelViewY;
- Vector mouseDestination(mousePosX, mousePosY);
+ Vector mouseDestination(mousePosX, mousePosY, 0.0F);
if (mouseDestination.x != lastMouseDestination.x
|| mouseDestination.y != lastMouseDestination.y)
diff --git a/src/vector.h b/src/vector.h
index 6c06d90d9..65e417e6c 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -52,7 +52,7 @@ class Vector final
*/
Vector(const float x0,
const float y0,
- const float z0 = 0.0F) :
+ const float z0) :
x(x0),
y(y0),
z(z0)