summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-23 12:45:57 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-23 12:45:57 +0300
commit6576d46a7f420edfc53226811a3158d6e509a7bc (patch)
treeffd0e61bd56bb11f76cd27cdfbaaa6b10b9ec14d /src/gui/windows/npcdialog.cpp
parent833ee2d763001667f5818a1922f5e96d60890cd9 (diff)
downloadplus-6576d46a7f420edfc53226811a3158d6e509a7bc.tar.gz
plus-6576d46a7f420edfc53226811a3158d6e509a7bc.tar.bz2
plus-6576d46a7f420edfc53226811a3158d6e509a7bc.tar.xz
plus-6576d46a7f420edfc53226811a3158d6e509a7bc.zip
Fix compilation warnings and fix issue introduced in last commits.
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r--src/gui/windows/npcdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index 0ccae687b..aab395a85 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -824,7 +824,7 @@ void NpcDialog::saveCamera()
if (!viewport || mCameraMode >= 0)
return;
- mCameraMode = settings.cameraMode;
+ mCameraMode = static_cast<int>(settings.cameraMode);
mCameraX = viewport->getCameraRelativeX();
mCameraY = viewport->getCameraRelativeY();
}
@@ -834,7 +834,7 @@ void NpcDialog::restoreCamera()
if (!viewport || mCameraMode == -1)
return;
- if (settings.cameraMode != mCameraMode)
+ if (static_cast<int>(settings.cameraMode) != mCameraMode)
viewport->toggleCameraMode();
if (mCameraMode)
{