From cbe7ca6fcadc28c331a4df0aa6c6d2dea8db8c4e Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 26 Jun 2022 19:58:46 +0200 Subject: player: limit data sizes for resources and population - All platforms should allow for the same resources. - Population is not expected to exceed UCHAR_MAX on any platform. --- src/player/inc/human_player.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/player/inc/human_player.h') diff --git a/src/player/inc/human_player.h b/src/player/inc/human_player.h index 39a0d6d..fc6dd07 100644 --- a/src/player/inc/human_player.h +++ b/src/player/inc/human_player.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #ifdef __cplusplus @@ -60,7 +61,7 @@ struct human_player size_t n_sel; bool top_gui; - unsigned long gui_res[MAX_RESOURCE_TYPES]; + uint32_t gui_res[MAX_RESOURCE_TYPES]; }; int human_player_init(const struct human_player_cfg *cfg, struct human_player *h); -- cgit v1.2.3