summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/messagein.cpp2
-rw-r--r--src/net/tmwa/messagein.h2
-rw-r--r--src/net/tmwa/messageout.cpp2
-rw-r--r--src/net/tmwa/messageout.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwa/messagein.cpp b/src/net/tmwa/messagein.cpp
index c8cf350e7..375e973f5 100644
--- a/src/net/tmwa/messagein.cpp
+++ b/src/net/tmwa/messagein.cpp
@@ -49,7 +49,7 @@ void MessageIn::postInit(const char *const str)
readInt16(str);
}
-uint16_t MessageIn::readId()
+uint16_t MessageIn::readId() const
{
int16_t value = -1;
if (mPos + 2 <= mLength)
diff --git a/src/net/tmwa/messagein.h b/src/net/tmwa/messagein.h
index bbdab6c86..14c6b8156 100644
--- a/src/net/tmwa/messagein.h
+++ b/src/net/tmwa/messagein.h
@@ -57,7 +57,7 @@ class MessageIn final : public Net::MessageIn
BeingId readBeingId(const char *const str) override final;
- uint16_t readId();
+ uint16_t readId() const;
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/messageout.cpp b/src/net/tmwa/messageout.cpp
index c0ac1ef03..82a67e924 100644
--- a/src/net/tmwa/messageout.cpp
+++ b/src/net/tmwa/messageout.cpp
@@ -43,7 +43,7 @@ MessageOut::MessageOut(const int16_t id) :
mData = mNetwork->mOutBuffer + CAST_SIZE(mNetwork->mOutSize);
}
-void MessageOut::expand(const size_t bytes)
+void MessageOut::expand(const size_t bytes) const
{
mNetwork->mOutSize += CAST_U32(bytes);
PacketCounters::incOutBytes(CAST_S32(bytes));
diff --git a/src/net/tmwa/messageout.h b/src/net/tmwa/messageout.h
index dd4abc569..b0dd2b1b0 100644
--- a/src/net/tmwa/messageout.h
+++ b/src/net/tmwa/messageout.h
@@ -70,7 +70,7 @@ class MessageOut final : public Net::MessageOut
{ mPos = 0; }
private:
- void expand(const size_t size) override final;
+ void expand(const size_t size) const override final;
Network *mNetwork;
};