From b863e50ac88f4b41db1a50741de740f7d7c60b4d Mon Sep 17 00:00:00 2001 From: maedhros Date: Wed, 4 Jul 2007 12:57:07 +0000 Subject: [PATCH] (svn r10434) -Fix (r9315): When setting multiple house overrides in one Action 0, don't override them all with the first ID. --- src/newgrf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 13bd336c28..f99fdefb64 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