# HG changeset patch # User maedhros # Date 1192875563 0 # Node ID 78449448addc3ce01795b007b26c6b4545603caa # Parent babce6309d7935fb4721131833dabc27fab0796e (svn r11308) -Fix (r9315): Change the house id as well as the house spec when using an overridden town building, since the house id is the one that's used to actually build the house. diff -r babce6309d79 -r 78449448addc src/town_cmd.cpp --- a/src/town_cmd.cpp Sat Oct 20 06:18:22 2007 +0000 +++ b/src/town_cmd.cpp Sat Oct 20 10:19:23 2007 +0000 @@ -1707,7 +1707,10 @@ hs = GetHouseSpecs(house); if (_loaded_newgrf_features.has_newhouses) { - if (hs->override != 0) hs = GetHouseSpecs(hs->override); + if (hs->override != 0) { + house = hs->override; + hs = GetHouseSpecs(house); + } if ((hs->extra_flags & BUILDING_IS_HISTORICAL) && !_generating_world) continue;