(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)

This commit is contained in:
peter1138
2006-05-06 22:20:16 +00:00
parent 0597c35fc1
commit 0a532f8491
2 changed files with 55 additions and 37 deletions

View File

@@ -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