summaryrefslogtreecommitdiff
path: root/newgrf.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-06 22:20:16 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-06 22:20:16 +0000
commit0a532f8491ce2ce1fa8e2d8d664079a91f0a8607 (patch)
treeb7bd02a74dac477ef70c8d9db544457d9e3a4791 /newgrf.h
parent0597c35fc142f4820e5900eb2e2f28422f351f62 (diff)
downloadopenttd-0a532f8491ce2ce1fa8e2d8d664079a91f0a8607.tar.xz
(svn r4760) - Newstations: change the way custom stations are allocated when loading from GRF, as the current way was flawed (reallocing memory which is referenced elsewhere)
Diffstat (limited to 'newgrf.h')
-rw-r--r--newgrf.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/newgrf.h b/newgrf.h
index ec1830307..18e74c5ce 100644
--- a/newgrf.h
+++ b/newgrf.h
@@ -41,8 +41,7 @@ typedef struct GRFFile {
int spritegroups_count;
SpriteGroup **spritegroups;
- uint num_stations;
- StationSpec *stations;
+ StationSpec **stations;
uint32 param[0x80];
uint param_end; /// one more than the highest set parameter