From 7d1d1e19d23fd32430951f15e9f3edc572478401 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 26 Jun 2023 18:45:40 -0400 Subject: [PATCH] Logging of invalid contracts --- src/engine/objects/NPC.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 2d02bdd1..e475e1f6 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -171,11 +171,10 @@ public class NPC extends AbstractCharacter { this.currentID = this.dbID; this.setObjectTypeMask(MBServerStatics.MASK_NPC); int contractID = rs.getInt("npc_contractID"); - + this.contract = DbManager.ContractQueries.GET_CONTRACT(contractID); this.parentZoneID = rs.getInt("parent"); this.gridObjectType = GridObjectType.STATIC; - this.contract = DbManager.ContractQueries.GET_CONTRACT(contractID); this.equipmentSetID = rs.getInt("equipmentSet"); this.runeSetID = rs.getInt("runeSet");