From d3e92d65769ee70931b38fe14b0e4a4134f23323 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 8 Sep 2024 18:35:53 -0500 Subject: [PATCH] city serilizing bug --- src/engine/objects/City.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index d3d36eac..dfe53f4a 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -289,8 +289,11 @@ public class City extends AbstractWorldObject { else writer.putString(rulingNation.getName()); - writer.putInt(city.getTOL().getRank()); - + if(city.getTOL() != null) { + writer.putInt(city.getTOL().getRank()); + } else{ + writer.putInt(1); + } if (city.isNoobIsle > 0) writer.putInt(1); else