forked from mirror/OpenTTD
(svn r20404) -Codechange: remove the need for StationSpec::allocated
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user