Changeset 410 for tags/1.4.0


Ignore:
Timestamp:
Jan 8, 2025, 11:12:32 AM (2 days ago)
Author:
chronos
Message:
  • Fixed: Incorrect ItemList reference evaluation.
Location:
tags/1.4.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tags/1.4.0/Install/flatpak/net.zdechov.app.xTactics.yml

    r409 r410  
    2727      - type: svn
    2828        url: https://svn.zdechov.net/xtactics/tags/1.4.0
    29         revision: r409
     29        revision: r410
    3030    buildsystem: simple
    3131    build-commands:
  • tags/1.4.0/Packages/Common/ItemList.pas

    r409 r410  
    515515    ReadId := ReadInteger(Node, Field.SysName, 0);
    516516    ReferenceList := GetReferenceList(Field.Index);
    517     if (ReadId > 0) and Assigned(ReferenceList) then
     517    if (ReadId > 0) and Assigned(ReferenceList) then begin
    518518      RefItem := ReferenceList.FindById(ReadId);
    519519      if Assigned(RefItem) then
    520520        SetValueReference(Field.Index, RefItem)
    521521        else raise Exception.Create('Reference id ' + IntToStr(ReadId) + ' not found.');
     522    end;
    522523  end else
    523524    raise Exception.Create(Format(SUnsupportedDataType, [DataTypeStr[Field.DataType]]));
Note: See TracChangeset for help on using the changeset viewer.