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/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/player.h')
| -rw-r--r-- | src/player/inc/player.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player/inc/player.h b/src/player/inc/player.h index 25f4d81..153740c 100644 --- a/src/player/inc/player.h +++ b/src/player/inc/player.h @@ -36,8 +36,8 @@ struct player bool alive; struct unit units[PLAYER_MAX_UNITS]; struct building buildings[PLAYER_MAX_BUILDINGS]; - unsigned long resources[MAX_RESOURCE_TYPES]; - size_t pop, bpop; + uint32_t resources[MAX_RESOURCE_TYPES]; + unsigned char pop, bpop; struct { |
