summaryrefslogtreecommitdiff
path: root/src/gui/questswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-02 21:38:23 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-02 21:40:43 +0300
commit4cffca0da71771d0d51ba4cd4842d2d93aa2946e (patch)
tree99b974a5bab64174ebd29ef7a4761caef01acec8 /src/gui/questswindow.cpp
parent1dab21b236d76900f3ddd2be32f9590aef394c2d (diff)
downloadmv-4cffca0da71771d0d51ba4cd4842d2d93aa2946e.tar.gz
mv-4cffca0da71771d0d51ba4cd4842d2d93aa2946e.tar.bz2
mv-4cffca0da71771d0d51ba4cd4842d2d93aa2946e.tar.xz
mv-4cffca0da71771d0d51ba4cd4842d2d93aa2946e.zip
Fix some conversions.
Diffstat (limited to 'src/gui/questswindow.cpp')
-rw-r--r--src/gui/questswindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp
index 66a7d50cf..c9e05cd14 100644
--- a/src/gui/questswindow.cpp
+++ b/src/gui/questswindow.cpp
@@ -331,9 +331,9 @@ void QuestsWindow::rebuild(const bool playSound)
}
if (updatedQuest == -1)
- updatedQuest = mQuestLinks.size() - 1;
+ updatedQuest = static_cast<int>(mQuestLinks.size() - 1);
else if (updatedQuest >= static_cast<int>(mQuestLinks.size()))
- updatedQuest = mQuestLinks.size() - 1;
+ updatedQuest = static_cast<int>(mQuestLinks.size() - 1);
if (updatedQuest >= 0)
{
mQuestsListBox->setSelected(updatedQuest);