Changeset 322 for trunk/GameSystem.pas


Ignore:
Timestamp:
Jun 25, 2024, 1:15:02 AM (4 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GameSystem.pas

    r318 r322  
    55uses
    66  Classes, SysUtils, Generics.Collections, &Unit, DOM, XMLRead, XMLWrite, XML, XMLConf,
    7   FileUtil, LazFileUtils, MapType, Nation, Building;
     7  FileUtil, LazFileUtils, MapType, Nation, Building, ItemList;
    88
    99type
     
    6969begin
    7070  I := 0;
    71   while (I < Count) and (TGameSystem(Items[I]).GetName <> Name) do Inc(I);
     71  while (I < Count) and (Items[I].GetName <> Name) do Inc(I);
    7272  if I < Count then Result := Items[I]
    7373    else Result := nil;
Note: See TracChangeset for help on using the changeset viewer.