Changeset 511


Ignore:
Timestamp:
Dec 27, 2023, 8:30:17 PM (12 months ago)
Author:
chronos
Message:
  • Fixed: Error by typing letters in list of maps.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r505 r511  
    11021102    pgStartMap, pgEditMap:
    11031103      begin
    1104         if Page = pgEditMap then
    1105           MapFileName := List.Items[List.ItemIndex] + CevoMapExt;
     1104        if Page = pgEditMap then begin
     1105          if List.ItemIndex >= 0 then
     1106            MapFileName := List.Items[List.ItemIndex] + CevoMapExt
     1107            else Exit;
     1108        end;
    11061109        MiniMap.LoadFromMapFile(GetMapsDir + DirectorySeparator + MapFileName,
    11071110          nMapLandTiles, nMapStartPositions);
Note: See TracChangeset for help on using the changeset viewer.