Changeset 299 for trunk/UBuilding.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/UBuilding.pas

    r297 r299  
    4242  public
    4343    Kind: TBuildingKind;
     44    procedure Assign(Source: TItem); override;
    4445    property MapCell: TObject read FMapCell write SetMapCell; // TMapCell;
    4546  end;
     
    8889  FMapCell := AValue;
    8990  if Assigned(FMapCell) then TCell(FMapCell).Building := Self;
     91end;
     92
     93procedure TBuilding.Assign(Source: TItem);
     94begin
     95  inherited;
     96  Kind := TBuilding(Source).Kind;
    9097end;
    9198
Note: See TracChangeset for help on using the changeset viewer.