summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-10-31 12:01:41 +0000
committerpeter1138 <peter1138@openttd.org>2005-10-31 12:01:41 +0000
commit95d1c43565402743d5cf6f215886ba028a54bb93 (patch)
treec58ba9869b9fc78455011c449534cd80a03a8dbe
parent7298b0b31b5f17adf25df4acf202411b737626bc (diff)
downloadopenttd-95d1c43565402743d5cf6f215886ba028a54bb93.tar.xz
(svn r3110) Replace another 256 with TOTAL_NUM_ENGINES.
-rw-r--r--player.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/player.h b/player.h
index 0f228b8e9..8dc96b14d 100644
--- 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 @@ typedef struct Player {
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;