aboutsummaryrefslogtreecommitdiff
path: root/src/player/inc/player.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-26 19:58:46 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-26 19:58:46 +0200
commiteee1205446e3b1832b256dfebac66f0a0f42e528 (patch)
treef9cb467009dba936d0c6674fa9329fec978910e4 /src/player/inc/player.h
parent9da37c198e88ebade4a176bc1d7c9a9ebd388862 (diff)
downloadrts-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.h4
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
{