summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net_structrw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net_structrw.c b/src/net_structrw.c
index 2284c6df..60316dc7 100644
--- a/src/net_structrw.c
+++ b/src/net_structrw.c
@@ -192,7 +192,7 @@ void NET_WriteTiccmdDiff(net_packet_t *packet, net_ticdiff_t *diff,
if (diff->diff & NET_TICDIFF_STRIFE)
{
NET_WriteInt8(packet, diff->cmd.buttons2);
- NET_WriteInt8(packet, diff->cmd.inventory);
+ NET_WriteInt16(packet, diff->cmd.inventory);
}
}
@@ -277,7 +277,7 @@ boolean NET_ReadTiccmdDiff(net_packet_t *packet, net_ticdiff_t *diff,
return false;
diff->cmd.buttons2 = val;
- if (!NET_ReadInt8(packet, &val))
+ if (!NET_ReadInt16(packet, &val))
return false;
diff->cmd.inventory = val;
}