Changeset 303 for trunk


Ignore:
Timestamp:
Aug 11, 2019, 12:11:07 PM (5 years ago)
Author:
chronos
Message:
  • Fixed: Player id was not correctly initialized during game load from file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UPlayer.pas

    r302 r303  
    66
    77uses
    8   Classes, SysUtils, Graphics, UMap, DOM, fgl2, XMLConf, UXMLUtils, Math,
     8  Classes, SysUtils, Graphics, UMap, DOM, fgl, XMLConf, UXMLUtils, Math,
    99  UGeometry, UUnit, UNation, UItemList;
    1010
     
    564564      for I := 0 to Count - 1 do begin
    565565        Items[I] := CreateItem;
     566        Items[I].Id := GetNewId;
    566567        TPlayer(Items[I]).LoadConfig(Config, Path + '/Player' + IntToStr(I));
    567568      end;
Note: See TracChangeset for help on using the changeset viewer.