summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/network.cpp2
-rw-r--r--src/net/tmwa/network.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp
index a240a3a74..ef772248f 100644
--- a/src/net/eathena/network.cpp
+++ b/src/net/eathena/network.cpp
@@ -243,7 +243,7 @@ MessageIn *Network::getNextMessage()
msgId, len));
#endif
- MessageIn *msg = new MessageIn(mInBuffer, len);
+ MessageIn *const msg = new MessageIn(mInBuffer, len);
SDL_mutexV(mMutex);
return msg;
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp
index 278f8e2fd..c8c28e0d2 100644
--- a/src/net/tmwa/network.cpp
+++ b/src/net/tmwa/network.cpp
@@ -221,7 +221,7 @@ MessageIn *Network::getNextMessage()
// msgId, len));
#endif
- MessageIn *msg = new MessageIn(mInBuffer, len);
+ MessageIn *const msg = new MessageIn(mInBuffer, len);
SDL_mutexV(mMutex);
return msg;