diff --git a/unmovable_cmd.c b/unmovable_cmd.c --- a/unmovable_cmd.c +++ b/unmovable_cmd.c @@ -373,8 +373,9 @@ int32 CmdDestroyCompanyHQ(int x, int y, /* Find player that has HQ flooded, and reset their location_of_house */ if (_current_player == OWNER_WATER) { + bool dodelete = false; tile = TILE_FROM_XY(x,y); - bool dodelete = false; + FOR_ALL_PLAYERS(p) { if (p->location_of_house == tile) { dodelete = true;