]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/inventory.qh
Net: register all types
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / inventory.qh
index ead573915e1ed8cbacb82af35286b8e67d681f4a..307d60ec0ab5b045dc6f524ab66e23a23e9d451f 100644 (file)
@@ -43,7 +43,7 @@ void Inventory_Write(Inventory data)
 #ifdef SVQC
 bool Inventory_Send(entity this, entity to, int sf)
 {
-    WriteByte(MSG_ENTITY, ENT_CLIENT_INVENTORY);
+    WriteHeader(MSG_ENTITY, ENT_CLIENT_INVENTORY);
     entity e = self.owner;
     if (/*IS_SPEC(e)*/ (e.classname == "spectator")) e = e.enemy;
     Inventory data = e.inventory;