Changeset 316 for trunk/UGameSystem.pas
- Timestamp:
- Jun 19, 2024, 11:53:06 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGameSystem.pas
r315 r316 1 1 unit UGameSystem; 2 2 3 {$mode delphi}4 5 3 interface 6 4 7 5 uses 8 Classes, SysUtils, fgl, UUnit, DOM, XMLRead, XMLWrite, XML, XMLConf,6 Classes, SysUtils, Generics.Collections, UUnit, DOM, XMLRead, XMLWrite, XML, XMLConf, 9 7 FileUtil, LazFileUtils, UMapType, UNation, UBuilding; 10 8 … … 39 37 { TGameSystems } 40 38 41 TGameSystems = class(T FPGObjectList<TGameSystem>)39 TGameSystems = class(TObjectList<TGameSystem>) 42 40 function AddNew(Name: string): TGameSystem; 43 41 function SearchByName(Name: string): TGameSystem; … … 103 101 destructor TGameSystem.Destroy; 104 102 begin 105 Nations.Free;106 BuildingKinds.Free;107 UnitKinds.Free;108 inherited Destroy;103 FreeAndNil(Nations); 104 FreeAndNil(BuildingKinds); 105 FreeAndNil(UnitKinds); 106 inherited; 109 107 end; 110 108
Note:
See TracChangeset
for help on using the changeset viewer.