summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 20:52:25 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 20:52:25 +0300
commit4e771087d5d3886557444417e870929971a4751c (patch)
tree27617a7337d5d0377b71cf524d147b17e673f3f8 /src
parent5d619b92b6fd08d5656e22adb6309d7c7ac8efd9 (diff)
downloadmv-4e771087d5d3886557444417e870929971a4751c.tar.gz
mv-4e771087d5d3886557444417e870929971a4751c.tar.bz2
mv-4e771087d5d3886557444417e870929971a4751c.tar.xz
mv-4e771087d5d3886557444417e870929971a4751c.zip
Remove default parameter from vector.
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)