diff options
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/network.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp index 94a462aba..be91b5bc9 100644 --- a/src/net/tmwa/network.cpp +++ b/src/net/tmwa/network.cpp @@ -163,7 +163,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) { |