Changeset 397 for trunk/LocalPlayer


Ignore:
Timestamp:
Jun 22, 2021, 10:50:19 AM (3 years ago)
Author:
chronos
Message:
  • Fixed: Access violation if a unit without home city is transported in ship to outside of country borders.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/ClientTools.pas

    r352 r397  
    636636procedure CityOptimizer_CityChange(cix: integer);
    637637begin
    638   if (MyRO.Government <> gAnarchy) and (MyCity[cix].Flags and
     638  if (MyRO.Government <> gAnarchy) and (cix <> -1) and (MyCity[cix].Flags and
    639639    chCaptured = 0) then
    640640  begin
Note: See TracChangeset for help on using the changeset viewer.