diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-04-03 08:53:31 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-04-03 08:53:31 +0200 |
commit | aa340fd857c151384873f2b29a9bad76e49e852a (patch) | |
tree | 60524b27c50de5e8a491c2a4bca941459bba7e71 /src/network/networkpacket.cpp | |
parent | 92f20696eb57701d4d59adb5e9278315c2558180 (diff) | |
download | hax-minetest-server-aa340fd857c151384873f2b29a9bad76e49e852a.tar.gz hax-minetest-server-aa340fd857c151384873f2b29a9bad76e49e852a.zip |
Create PacketError exception and use it with ACTIVEOBJECT_REMOVE_ADD handler which can be unreliable
Diffstat (limited to 'src/network/networkpacket.cpp')
-rw-r--r-- | src/network/networkpacket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkpacket.cpp b/src/network/networkpacket.cpp index 95605d410..a4a481db4 100644 --- a/src/network/networkpacket.cpp +++ b/src/network/networkpacket.cpp @@ -45,7 +45,7 @@ void NetworkPacket::checkReadOffset(u32 from_offset) std::stringstream ss; ss << "Reading outside packet (offset: " << from_offset << ", packet size: " << getSize() << ")"; - throw SerializationError(ss.str()); + throw PacketError(ss.str()); } } |