]> git.localhorst.tv Git - blank.git/commitdiff
fix stupid bug in packet builder
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 4 Sep 2015 14:44:19 +0000 (16:44 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 4 Sep 2015 14:44:19 +0000 (16:44 +0200)
src/net/Packet.hpp

index bd9dd86436a68ff0c08c548b8dd8b2031aa06ee2..fa35189056d3201ca982539913303e3c0a19ed92 100644 (file)
@@ -105,7 +105,7 @@ struct Packet {
                pack.Tag();
                pack.Type(PayloadType::TYPE);
 
-               udp_pack.len = sizeof(Header) + PayloadType::TYPE;
+               udp_pack.len = sizeof(Header) + PayloadType::MAX_LEN;
 
                PayloadType result;
                result.length = PayloadType::MAX_LEN;