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 | eee1205446e3b1832b256dfebac66f0a0f42e528 (patch) | |
| tree | f9cb467009dba936d0c6674fa9329fec978910e4 /src/player/inc/human_player.h | |
| parent | 9da37c198e88ebade4a176bc1d7c9a9ebd388862 (diff) | |
| download | rts-eee1205446e3b1832b256dfebac66f0a0f42e528.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); |
