diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-02 14:05:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-02 14:05:30 +0300 |
commit | 962f182fcc989ec587282e44f889188ce241ba31 (patch) | |
tree | da100971ec4952d0c56cb404862099c670bcfe0e /src/net/tmwa/questhandler.cpp | |
parent | 4df121e6dcdf53436f50ce81dd60096ce0138a2c (diff) | |
download | plus-962f182fcc989ec587282e44f889188ce241ba31.tar.gz plus-962f182fcc989ec587282e44f889188ce241ba31.tar.bz2 plus-962f182fcc989ec587282e44f889188ce241ba31.tar.xz plus-962f182fcc989ec587282e44f889188ce241ba31.zip |
Add const to more classes.
Diffstat (limited to 'src/net/tmwa/questhandler.cpp')
-rw-r--r-- | src/net/tmwa/questhandler.cpp | 10 |
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); } |