(svn r10434) -Fix (r9315): When setting multiple house overrides in one Action 0, don't override them all with the first ID.
authormaedhros
Wed, 04 Jul 2007 12:57:07 +0000
changeset 7656 bd97032a569a
parent 7655 8d1e8833ce28
child 7657 1b1d190f0272
(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
--- a/src/newgrf.cpp	Wed Jul 04 12:52:43 2007 +0000
+++ b/src/newgrf.cpp	Wed Jul 04 12:57:07 2007 +0000
@@ -1307,11 +1307,11 @@
 
 				/* 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