summaryrefslogtreecommitdiff
path: root/src/net/tmwa/questhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-02 14:05:30 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 14:05:30 +0300
commit962f182fcc989ec587282e44f889188ce241ba31 (patch)
treeda100971ec4952d0c56cb404862099c670bcfe0e /src/net/tmwa/questhandler.cpp
parent4df121e6dcdf53436f50ce81dd60096ce0138a2c (diff)
downloadManaVerse-962f182fcc989ec587282e44f889188ce241ba31.tar.gz
ManaVerse-962f182fcc989ec587282e44f889188ce241ba31.tar.bz2
ManaVerse-962f182fcc989ec587282e44f889188ce241ba31.tar.xz
ManaVerse-962f182fcc989ec587282e44f889188ce241ba31.zip
Add const to more classes.
Diffstat (limited to 'src/net/tmwa/questhandler.cpp')
-rw-r--r--src/net/tmwa/questhandler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/questhandler.cpp b/src/net/tmwa/questhandler.cpp
index 759037bb5..d3209cb9e 100644
--- a/src/net/tmwa/questhandler.cpp
+++ b/src/net/tmwa/questhandler.cpp
@@ -68,8 +68,8 @@ void QuestHandler::handleMessage(Net::MessageIn &msg)
void QuestHandler::processSetQuestVar(Net::MessageIn &msg A_UNUSED)
{
- int var = msg.readInt16(); // variable
- int val = msg.readInt32(); // value
+ const int var = msg.readInt16(); // variable
+ const int val = msg.readInt32(); // value
if (questsWindow)
{
questsWindow->updateQuest(var, val);
@@ -79,11 +79,11 @@ void QuestHandler::processSetQuestVar(Net::MessageIn &msg A_UNUSED)
void QuestHandler::processPlayerQuests(Net::MessageIn &msg A_UNUSED)
{
- int count = (msg.readInt16() - 4) / 6;
+ const int count = (msg.readInt16() - 4) / 6;
for (int f = 0; f < count; f ++)
{
- int var = msg.readInt16(); // variable
- int val = msg.readInt32(); // value
+ const int var = msg.readInt16(); // variable
+ const int val = msg.readInt32(); // value
if (questsWindow)
questsWindow->updateQuest(var, val);
}