Changeset 299 for trunk/UMap.pas


Ignore:
Timestamp:
Jul 10, 2019, 5:48:18 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Error in case of missing building kind.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UMap.pas

    r294 r299  
    622622      if Assigned(OneUnit) then
    623623        Inc(TotalUnits, OneUnit.Power);
    624       if Assigned(Building) and (Building.Kind.SpecialType = stCity) then
     624      if Assigned(Building) and Assigned(Building.Kind) and
     625      (Building.Kind.SpecialType = stCity) then
    625626        Inc(TotalCities);
    626627      if Extra = etObjectiveTarget then
Note: See TracChangeset for help on using the changeset viewer.