diff --git a/Strategic/Strategic Town Loyalty.cpp b/Strategic/Strategic Town Loyalty.cpp index 78e93eeee..26b250775 100644 --- a/Strategic/Strategic Town Loyalty.cpp +++ b/Strategic/Strategic Town Loyalty.cpp @@ -1047,6 +1047,10 @@ void HandleLoyaltyForDemolitionOfBuilding( SOLDIERTYPE *pSoldier, INT16 sPointsD // get town id bTownId = GetTownIdForSector( pSoldier->sSectorX, pSoldier->sSectorY ); + // Flugente: for safety reasons, exit if not in a town + if( bTownId == BLANK_SECTOR ) + return; + // penalize the side that did it if( pSoldier->bTeam == OUR_TEAM ) {