From 43072786b1556be58cf3dafe488c31bb56bdbe9b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 13 Mar 2025 19:09:47 -0500 Subject: [PATCH] null city bug --- src/engine/objects/City.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index f5a9207c..490c7cf4 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -382,6 +382,12 @@ public class City extends AbstractWorldObject { if (ago.getObjectType().equals(GameObjectType.City)) { City city = (City) ago; + if(city == null) + continue; + + if(city.getTOL() != null && city.getTOL().getRank() < 0) + continue; + if (city.noTeleport) continue;