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/playerhandler.cpp | |
parent | 4df121e6dcdf53436f50ce81dd60096ce0138a2c (diff) | |
download | mv-962f182fcc989ec587282e44f889188ce241ba31.tar.gz mv-962f182fcc989ec587282e44f889188ce241ba31.tar.bz2 mv-962f182fcc989ec587282e44f889188ce241ba31.tar.xz mv-962f182fcc989ec587282e44f889188ce241ba31.zip |
Add const to more classes.
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 4549234f4..dae4f8eeb 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -154,7 +154,7 @@ void PlayerHandler::pickUp(const FloorItem *floorItem) MessageOut outMsg(CMSG_ITEM_PICKUP); outMsg.writeInt32(floorItem->getId()); - TmwAthena::InventoryHandler *handler = + TmwAthena::InventoryHandler *const handler = static_cast<TmwAthena::InventoryHandler*>(Net::getInventoryHandler()); if (handler) handler->pushPickup(floorItem->getId()); @@ -216,7 +216,7 @@ void PlayerHandler::processOnlineList(Net::MessageIn &msg) if (!whoIsOnline) return; - int size = msg.readInt16() - 4; + const int size = msg.readInt16() - 4; std::vector<OnlinePlayer*> arr; if (!size) |