Changeset 359 for trunk


Ignore:
Timestamp:
Apr 9, 2021, 10:13:29 AM (4 years ago)
Author:
chronos
Message:
  • Fixed: Exception if AI tournament was selected while some player slots were empty.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r352 r359  
    11141114      begin // turn all local players off
    11151115        for I := 1 to PlayerSlots.Count - 1 do
    1116           if PlayersBrain[I].Kind = btTerm then begin
     1116          if Assigned(PlayersBrain[I]) and (PlayersBrain[I].Kind = btTerm) then begin
    11171117            PlayersBrain[I] := nil;
    11181118            PlayerSlots[I].DiffUpBtn.Visible := false;
Note: See TracChangeset for help on using the changeset viewer.