Packet lenght error

This commit is contained in:
Shoghi Cervantes Pueyo 2012-11-23 15:48:26 +01:00
parent 2266a14965
commit 7c25b8c614

View File

@ -72,7 +72,7 @@ class Packet{
break;
case "customData":
$reply = new CustomPacketHandler($this->data[$field]["id"], "", $this->data[$field], true);
$this->addRaw(Utils::writeShort(strlen($reply->raw) << 3));
$this->addRaw(Utils::writeShort((strlen($reply->raw) + 1) << 3));
$this->addRaw(Utils::writeTriad($this->data[$field]["count"]));
$this->addRaw(chr($this->data[$field]["id"]));
$this->addRaw($reply->raw);