summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-07 21:39:30 +0000
committerrubidium <rubidium@openttd.org>2010-08-07 21:39:30 +0000
commit2b645d1b0de7a01e02ed4e978df684b8bb6741d6 (patch)
treead79e568b0fe76b50568119971d7470a3fb5df58 /src/newgrf.cpp
parent5be1f3f06c2d1204afad529d523d8b4cc47a7e2d (diff)
downloadopenttd-2b645d1b0de7a01e02ed4e978df684b8bb6741d6.tar.xz
(svn r20404) -Codechange: remove the need for StationSpec::allocated
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 505f3ee50..6009d91b6 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -3885,6 +3885,11 @@ static void StationMapSpriteGroup(ByteReader *buf, uint8 idcount)
continue;
}
+ if (statspec->grf_prop.grffile != NULL) {
+ grfmsg(1, "StationMapSpriteGroup: Station with ID 0x%02X mapped multiple times, skipping", stations[i]);
+ continue;
+ }
+
statspec->spritegroup[CT_DEFAULT] = _cur_grffile->spritegroups[groupid];
statspec->grf_prop.grffile = _cur_grffile;
statspec->grf_prop.local_id = stations[i];