Changeset 399 for trunk/Game.pas


Ignore:
Timestamp:
Jan 6, 2025, 10:48:55 AM (3 days ago)
Author:
chronos
Message:
  • Fixed: Wrong players and units id recalculation during game save causing bad references.
  • Modified: Set new created players as computer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Game.pas

    r398 r399  
    695695      WriteInteger(RootNode, 'CurrentPlayer', CurrentPlayer.Id);
    696696
     697      Units.RecalculateItemsId;
     698      Players.RecalculateItemsId;
     699
    697700      NewNode := OwnerDocument.CreateElement('GameSystem');
    698701      AppendChild(NewNode);
Note: See TracChangeset for help on using the changeset viewer.