Ignore:
Timestamp:
Feb 14, 2019, 10:25:13 PM (6 years ago)
Author:
chronos
Message:
  • Fixed: Incorrect way to assign units between two game systems causing crash of the application on exit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormGameSystems.pas

    r277 r278  
    3838    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    3939    procedure FormCreate(Sender: TObject);
     40    procedure FormDestroy(Sender: TObject);
    4041    procedure FormShow(Sender: TObject);
    4142    procedure ListView1Data(Sender: TObject; Item: TListItem);
     
    159160end;
    160161
     162procedure TFormGameSystems.FormDestroy(Sender: TObject);
     163begin
     164  GameSystems := nil;
     165end;
     166
    161167procedure TFormGameSystems.FormShow(Sender: TObject);
    162168begin
Note: See TracChangeset for help on using the changeset viewer.