Fix wrong channel type in Client/Server CommandFactories
authorLoic Blot <loic.blot@unix-experience.fr>
Fri, 14 Apr 2017 13:56:40 +0000 (15:56 +0200)
committerLoic Blot <loic.blot@unix-experience.fr>
Fri, 14 Apr 2017 13:56:40 +0000 (15:56 +0200)
This is a u8 not a u16

src/network/clientopcodes.h
src/network/serveropcodes.h

index 9143865b892c8a5eed964dceae777b1fa4fd6d4d..43a93bb4f11016e1874953fb6380c9da2ce59449 100644 (file)
@@ -41,7 +41,7 @@ struct ToClientCommandHandler
 struct ServerCommandFactory
 {
        const char* name;
-       u16 channel;
+       u8 channel;
        bool reliable;
 };
 
index aa3301069309e9dccc9ace566cea8e74591ddd16..72323ae2476c429616390a9f8663e1fa6797d386 100644 (file)
@@ -41,7 +41,7 @@ struct ToServerCommandHandler
 struct ClientCommandFactory
 {
        const char* name;
-       u16 channel;
+       u8 channel;
        bool reliable;
 };