Mercurial > hg > openttd
changeset 2573:c9af1fada8f1 draft
(svn r3110) Replace another 256 with TOTAL_NUM_ENGINES.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Mon, 31 Oct 2005 12:01:41 +0000 |
parents | bc0a42fb66cc |
children | 5eac9001f4ca |
files | player.h |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/player.h +++ b/player.h @@ -5,6 +5,7 @@ #include "aystar.h" #include "rail.h" +#include "engine.h" typedef struct PlayerEconomyEntry { int32 income; @@ -187,7 +188,7 @@ int64 yearly_expenses[3][13]; PlayerEconomyEntry cur_economy; PlayerEconomyEntry old_economy[24]; - EngineID engine_replacement[256]; + EngineID engine_replacement[TOTAL_NUM_ENGINES]; bool engine_renew; int16 engine_renew_months; uint32 engine_renew_money;