diff options
Diffstat (limited to 'src/ai/default/default.cpp')
-rw-r--r-- | src/ai/default/default.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/default/default.cpp b/src/ai/default/default.cpp index 650250ca5..105f43b52 100644 --- a/src/ai/default/default.cpp +++ b/src/ai/default/default.cpp @@ -3956,7 +3956,7 @@ static void AiBuildCompanyHQ(Player *p) { TileIndex tile; - if (p->location_of_house == 0 && + if (p->location_of_HQ == 0 && p->last_build_coordinate != 0) { tile = AdjustTileCoordRandomly(p->last_build_coordinate, 8); DoCommand(tile, 0, 0, DC_EXEC | DC_AUTO | DC_NO_WATER, CMD_BUILD_COMPANY_HQ); |