diff options
Diffstat (limited to 'src/net/eathena/network.cpp')
-rw-r--r-- | src/net/eathena/network.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp index fc0cd3837..96bebd320 100644 --- a/src/net/eathena/network.cpp +++ b/src/net/eathena/network.cpp @@ -134,7 +134,10 @@ void Network::dispatchMessages() len = readWord(2); MessageIn msg(mInBuffer, len); - msg.postInit(mPackets[msgId].name); + unsigned int ver = mPackets[msgId].version; + if (ver == 0) + ver = packetVersion; + msg.postInit(mPackets[msgId].name, ver); SDL_mutexV(mMutexIn); if (len == 0) |