(svn r20404) -Codechange: remove the need for StationSpec::allocated

This commit is contained in:
rubidium
2010-08-07 21:39:30 +00:00
parent 5be1f3f06c
commit 2b645d1b0d
3 changed files with 7 additions and 9 deletions

View File

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