Changeset 291 for trunk/UPlayer.pas


Ignore:
Timestamp:
Mar 26, 2019, 1:16:27 PM (6 years ago)
Author:
chronos
Message:
  • Modified: UnitKind list and items converted to general item list.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UPlayer.pas

    r290 r291  
    13181318    ((TGame(Game).GrowCells = gcPlayerCities) and (Terrain = ttCity))) then begin
    13191319      if not Assigned(OneUnit) then begin
    1320         NewUnit := TGame(Game).Units.AddNew(TGame(Game).GameSystem.UnitKinds.First, 0);
     1320        NewUnit := TGame(Game).Units.AddNew(TUnitKind(TGame(Game).GameSystem.UnitKinds.First), 0);
    13211321        NewUnit.Player := Self;
    13221322        NewUnit.MapCell := TCell(Cells[I]);
Note: See TracChangeset for help on using the changeset viewer.