summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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