From 89bfad78a6b66ad0462342a67d7c3a3a649a9a60 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 25 Aug 2023 13:31:56 -0400 Subject: [PATCH] Contract handling cleanup. --- src/engine/objects/Mob.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 39519e99..8b00993b 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -489,7 +489,10 @@ public class Mob extends AbstractIntelligenceAgent { mobile.firstName = pirateName; - mobile.contractUUID = contract.getContractID(); + if (contract == null) + mobile.contractUUID = 0; + else + mobile.contractUUID = contract.getContractID(); Mob mob;