Changeset 238 for trunk


Ignore:
Timestamp:
May 15, 2020, 10:03:56 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Wrong previous game selection index if the list was previously empty and new game is created.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r219 r238  
    16081608  if Tab <> tbNew then
    16091609    if List.Count > 0 then begin
    1610       if (List.Count > ListIndex[Tab]) then
     1610      if (ListIndex[Tab] < List.Count) and (ListIndex[Tab] >= 0) then
    16111611        List.ItemIndex := ListIndex[Tab]
    16121612        else List.ItemIndex := 0;
Note: See TracChangeset for help on using the changeset viewer.