summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-24 17:29:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-25 22:08:19 +0300
commit14f55eb8c6e44763e70046b9661bd056280226a5 (patch)
treed255d2765b33f10f2928fa4da3f0bd45f477cea6 /src/gui/viewport.cpp
parente42d8efbde5c2a560d3ed47347281422a76be22f (diff)
downloadmanaverse-14f55eb8c6e44763e70046b9661bd056280226a5.tar.gz
manaverse-14f55eb8c6e44763e70046b9661bd056280226a5.tar.bz2
manaverse-14f55eb8c6e44763e70046b9661bd056280226a5.tar.xz
manaverse-14f55eb8c6e44763e70046b9661bd056280226a5.zip
Add missing non null attributes into gui directory.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 42c002d39..ff7946ed6 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -280,7 +280,7 @@ void Viewport::logic()
BLOCK_START("Viewport::logic")
// Make the player follow the mouse position
// if the mouse is dragged elsewhere than in a window.
- Gui::getMouseState(&mMouseX, &mMouseY);
+ Gui::getMouseState(mMouseX, mMouseY);
BLOCK_END("Viewport::logic")
}
@@ -288,7 +288,7 @@ void Viewport::followMouse()
{
if (!gui)
return;
- const MouseStateType button = Gui::getMouseState(&mMouseX, &mMouseY);
+ const MouseStateType button = Gui::getMouseState(mMouseX, mMouseY);
// If the left button is dragged
if (mPlayerFollowMouse && (button & SDL_BUTTON(1)))
{
@@ -309,7 +309,7 @@ void Viewport::drawDebugPath(Graphics *const graphics)
if (!localPlayer || !userPalette || !actorManager || !mMap || !gui)
return;
- Gui::getMouseState(&mMouseX, &mMouseY);
+ Gui::getMouseState(mMouseX, mMouseY);
static Path debugPath;
static Vector lastMouseDestination = Vector(0.0F, 0.0F);