diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 19:58:46 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 19:58:46 +0200 |
| commit | cbe7ca6fcadc28c331a4df0aa6c6d2dea8db8c4e (patch) | |
| tree | 7502cdb2759829cc0f1cd176645e4186ab85f3aa /src/player/inc/human_player.h | |
| parent | 0b94264a7e5e7c8c1a56f8bba3cbe7a5a63cd38b (diff) | |
| download | jancity-cbe7ca6fcadc28c331a4df0aa6c6d2dea8db8c4e.tar.gz | |
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.
Diffstat (limited to 'src/player/inc/human_player.h')
| -rw-r--r-- | src/player/inc/human_player.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 <peripheral.h> #include <player.h> #include <stdbool.h> +#include <stdint.h> #include <stddef.h> #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); |
