summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-11-12 20:40:58 +0000
committerglx <glx@openttd.org>2007-11-12 20:40:58 +0000
commitde4e9cdc9c7f2bfe4b073c62e2cd5759be435d7b (patch)
treec2837b3eb9dae895812edefca8ada66006ce06ed /src/newgrf.cpp
parenteb47b106acc45bf4272148df2e4388bebeda29b1 (diff)
downloadopenttd-de4e9cdc9c7f2bfe4b073c62e2cd5759be435d7b.tar.xz
(svn r11423) -Codechange: store grfid when adding an override
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index f02feadaa..6d96424b3 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1336,7 +1336,7 @@ static bool TownHouseChangeInfo(uint hid, int numinfo, int prop, byte **bufp, in
continue;
}
- _house_mngr.Add(hid + i, override);
+ _house_mngr.Add(hid + i, _cur_grffile->grfid, override);
} break;
case 0x16: // Periodic refresh multiplier
@@ -1764,7 +1764,7 @@ static bool IndustrytilesChangeInfo(uint indtid, int numinfo, int prop, byte **b
return false;
}
- _industile_mngr.Add(indtid + i, ovrid);
+ _industile_mngr.Add(indtid + i, _cur_grffile->grfid, ovrid);
} break;
case 0x0A: // Tile acceptance
@@ -1877,7 +1877,7 @@ static bool IndustriesChangeInfo(uint indid, int numinfo, int prop, byte **bufp,
return false;
}
indsp->grf_prop.override = ovrid;
- _industry_mngr.Add(indid + i, ovrid);
+ _industry_mngr.Add(indid + i, _cur_grffile->grfid, ovrid);
} break;
case 0x0A: { // Set industry layout(s)