summaryrefslogtreecommitdiff
path: root/src/net/eathena/network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/network.cpp')
-rw-r--r--src/net/eathena/network.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp
index 57b450f1a..e03554ee2 100644
--- a/src/net/eathena/network.cpp
+++ b/src/net/eathena/network.cpp
@@ -191,7 +191,12 @@ void Network::dispatchMessages()
SDL_mutexV(mMutex);
if (len == 0)
- logger->safeError("Zero length packet received. Exiting.");
+ {
+ // need copy data for safty
+ std::string str = strprintf("Wrong packet %d ""received. Exiting.",
+ msgId);
+ logger->safeError(str);
+ }
if (msgId >= 0 && msgId < messagesSize)
{