From d304d0706c19d281d1e6bf2b7f20e8ade3c3b10c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 25 Aug 2024 15:28:12 -0400 Subject: [PATCH] Owner set to null --- src/engine/workthreads/DestroyCityThread.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/workthreads/DestroyCityThread.java b/src/engine/workthreads/DestroyCityThread.java index 40c22605..04b38e18 100644 --- a/src/engine/workthreads/DestroyCityThread.java +++ b/src/engine/workthreads/DestroyCityThread.java @@ -143,6 +143,8 @@ public class DestroyCityThread implements Runnable { city.realm = null; } + city.getTOL().setOwner(null); + // It's now safe to delete the city zone from the database // which will cause a cascade delete of everything else