summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-11-11 20:34:16 +0000
committerpeter1138 <peter1138@openttd.org>2005-11-11 20:34:16 +0000
commitb1075ca7a43ea39cddf4ec4406f99bb5aa37a113 (patch)
tree0cfaa224bb5153de119f9d01928afb07925e0481 /newgrf.c
parent1c867927a3a8b8c26e1758bbd1f367a4f684e084 (diff)
downloadopenttd-b1075ca7a43ea39cddf4ec4406f99bb5aa37a113.tar.xz
(svn r3166) Constify read-only accesses of custom stations
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newgrf.c b/newgrf.c
index 11c0b0748..f66cec1f5 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -869,13 +869,13 @@ static bool StationChangeInfo(uint stid, int numinfo, int prop, byte **bufp, int
FOR_EACH_OBJECT {
StationSpec *stat = &_cur_grffile->stations[stid + i];
byte srcid = grf_load_byte(&buf);
- StationSpec *srcstat = &_cur_grffile->stations[srcid];
+ const StationSpec *srcstat = &_cur_grffile->stations[srcid];
int t;
stat->tiles = srcstat->tiles;
for (t = 0; t < stat->tiles; t++) {
DrawTileSprites *dts = &stat->renderdata[t];
- DrawTileSprites *sdts = &srcstat->renderdata[t];
+ const DrawTileSprites *sdts = &srcstat->renderdata[t];
DrawTileSeqStruct const *sdtss = sdts->seq;
int seq_count = 0;