Changeset 344 for trunk/Units.pas


Ignore:
Timestamp:
Dec 23, 2024, 8:16:05 AM (10 hours ago)
Author:
chronos
Message:
  • Modified: Improved implementation of TItemList class to be generic class to avoid explicit typecasting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Units.pas

    r342 r344  
    177177begin
    178178  Player := TGame(Game).Players.FindById(PlayerId);
    179   Kind := TUnitKind(TGame(Game).GameSystem.UnitKinds.FindById(KindId));
     179  Kind := TGame(Game).GameSystem.UnitKinds.FindById(KindId);
    180180end;
    181181
Note: See TracChangeset for help on using the changeset viewer.