summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 17:33:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commit4466a6a4b4c39dc91c2b37b0368a83c8e83e197f (patch)
tree04d526f85ad4f2e494cce8bdbee0511bc80d4e99
parent85eebe87172021e63267515c6a7964efccb6015c (diff)
downloadplus-4466a6a4b4c39dc91c2b37b0368a83c8e83e197f.tar.gz
plus-4466a6a4b4c39dc91c2b37b0368a83c8e83e197f.tar.bz2
plus-4466a6a4b4c39dc91c2b37b0368a83c8e83e197f.tar.xz
plus-4466a6a4b4c39dc91c2b37b0368a83c8e83e197f.zip
fix const in declatations in npchandler.
-rw-r--r--src/net/ea/npchandler.h6
-rw-r--r--src/net/eathena/npchandler.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/net/ea/npchandler.h b/src/net/ea/npchandler.h
index 21fd35629..f67e9b3f3 100644
--- a/src/net/ea/npchandler.h
+++ b/src/net/ea/npchandler.h
@@ -36,12 +36,12 @@ class NpcHandler : public Net::NpcHandler
public:
A_DELETE_COPY(NpcHandler)
- void sendLetter(int npcId, const std::string &recipient,
+ void sendLetter(const int npcId, const std::string &recipient,
const std::string &text) const override;
- void startShopping(int beingId) const override;
+ void startShopping(const int beingId) const override;
- void endShopping(int beingId) const override;
+ void endShopping(const int beingId) const override;
virtual int getNpc(Net::MessageIn &msg,
bool haveLength) A_WARN_UNUSED = 0;
diff --git a/src/net/eathena/npchandler.cpp b/src/net/eathena/npchandler.cpp
index 05d6bb0b1..a1ea47d8a 100644
--- a/src/net/eathena/npchandler.cpp
+++ b/src/net/eathena/npchandler.cpp
@@ -242,14 +242,14 @@ int NpcHandler::getNpc(Net::MessageIn &msg, const bool haveLength)
}
void NpcHandler::processNpcCutin(Net::MessageIn &msg A_UNUSED,
- int npcId A_UNUSED) const
+ const int npcId A_UNUSED) const
{
msg.readString(64); // image name
msg.readInt8(); // type
}
void NpcHandler::processNpcViewPoint(Net::MessageIn &msg A_UNUSED,
- int npcId A_UNUSED) const
+ const int npcId A_UNUSED) const
{
msg.readInt32(); // type
msg.readInt32(); // x