summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net.c2
-rw-r--r--src/net.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/net.c b/src/net.c
index 722cb3c..46331f1 100644
--- a/src/net.c
+++ b/src/net.c
@@ -203,7 +203,7 @@ void server_start_game(int* clients, const uint8_t clientcount, const struct pla
exit(EXIT_FAILURE);
}
buf[pos++] = msg_type_start_game;
- buf[pos++] = clientcount;
+ buf[pos++] = players->count;
// copy usernames with length to buffer
for(int i=0; i<usercount; i++)
{
diff --git a/src/net.h b/src/net.h
index 419febf..d8aacbb 100644
--- a/src/net.h
+++ b/src/net.h
@@ -1,6 +1,7 @@
#ifndef OXEN_NET_H
#define OXEN_NET_H
+#include <stdint.h>
typedef enum
{