diff options
author | peter1138 <peter1138@openttd.org> | 2005-10-04 19:52:26 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-10-04 19:52:26 +0000 |
commit | 9fabe008a0c3edc750f72e9eb1e9b424455e3028 (patch) | |
tree | b3c225b70ee50dd0c2138e3bc11f7d2e31033efc /station_cmd.c | |
parent | c3a73d4047e9f748900b3c48472f8f93868a9846 (diff) | |
download | openttd-9fabe008a0c3edc750f72e9eb1e9b424455e3028.tar.xz |
(svn r3014) -NewGRF, Codechange: Make all sprite group references be pointers instead of copying the data around.
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c index aeda0fa77..4a62781f3 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -1286,7 +1286,7 @@ static const RealSpriteGroup *ResolveStationSpriteGroup(const SpriteGroup *spg, * That means we should get the first target * (NOT the default one). */ if (dsg->num_ranges > 0) { - target = &dsg->ranges[0].group; + target = dsg->ranges[0].group; } else { target = dsg->default_group; } @@ -1346,7 +1346,7 @@ static const RealSpriteGroup *ResolveStationSpriteGroup(const SpriteGroup *spg, uint32 GetCustomStationRelocation(const StationSpec *spec, const Station *st, byte ctype) { - const RealSpriteGroup *rsg = ResolveStationSpriteGroup(&spec->spritegroup[ctype], st); + const RealSpriteGroup *rsg = ResolveStationSpriteGroup(spec->spritegroup[ctype], st); if (rsg->sprites_per_set != 0) { if (rsg->loading_count != 0) return rsg->loading[0]; |