summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-07-04 12:57:07 +0000
committermaedhros <maedhros@openttd.org>2007-07-04 12:57:07 +0000
commitfd475d47d88778e16cf95077115b085a4790ed4f (patch)
tree8d793f8fd3ec7773b1c9d78f549d632238e3eabd
parentd938a4ffe60f5568e02137235e4f0b8d9e9d5ad9 (diff)
downloadopenttd-fd475d47d88778e16cf95077115b085a4790ed4f.tar.xz
(svn r10434) -Fix (r9315): When setting multiple house overrides in one Action 0, don't override them all with the first ID.
-rw-r--r--src/newgrf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 13bd336c2..f99fdefb6 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -1307,11 +1307,11 @@ static bool TownHouseChangeInfo(uint hid, int numinfo, int prop, byte **bufp, in
/* The house being overridden must be an original house. */
if (override >= NEW_HOUSE_OFFSET) {
- grfmsg(2, "TownHouseChangeInfo: Attempt to override new house %u with house id %u. Ignoring.", override, hid);
+ grfmsg(2, "TownHouseChangeInfo: Attempt to override new house %u with house id %u. Ignoring.", override, hid + i);
continue;
}
- _house_mngr.Add(hid, override);
+ _house_mngr.Add(hid + i, override);
} break;
case 0x16: // Periodic refresh multiplier