summaryrefslogtreecommitdiff
path: root/src/network/network_server.h
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-04-18 12:29:34 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-04-24 20:42:01 +0200
commitf71fb0f54af443cee37d3c41a0d4f39a24617741 (patch)
tree5b3f1aeb2f54f72fa29b6ad19f3507c27b6b901c /src/network/network_server.h
parent6f161f655942f2ca0091a75cdab8e3260e31bb5f (diff)
downloadopenttd-f71fb0f54af443cee37d3c41a0d4f39a24617741.tar.xz
Codechange: encapsulate reading the size of a Packet
Diffstat (limited to 'src/network/network_server.h')
-rw-r--r--src/network/network_server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.h b/src/network/network_server.h
index 77612fdc8..4f6033fab 100644
--- a/src/network/network_server.h
+++ b/src/network/network_server.h
@@ -67,7 +67,7 @@ public:
uint32 last_token_frame; ///< The last frame we received the right token
ClientStatus status; ///< Status of this client
CommandQueue outgoing_queue; ///< The command-queue awaiting delivery
- int receive_limit; ///< Amount of bytes that we can receive at this moment
+ size_t receive_limit; ///< Amount of bytes that we can receive at this moment
struct PacketWriter *savegame; ///< Writer used to write the savegame.
NetworkAddress client_address; ///< IP-address of the client (so he can be banned)