Browse Source

Logging of invalid contracts

master
MagicBot 1 year ago
parent
commit
7d1d1e19d2
  1. 3
      src/engine/objects/NPC.java

3
src/engine/objects/NPC.java

@ -171,11 +171,10 @@ public class NPC extends AbstractCharacter { @@ -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");

Loading…
Cancel
Save