diff --git a/src/engine/objects/NPC.java b/src/engine/objects/NPC.java index 760df693..63f59b92 100644 --- a/src/engine/objects/NPC.java +++ b/src/engine/objects/NPC.java @@ -246,7 +246,7 @@ public class NPC extends AbstractCharacter { if (this.building != null && this.building.getOwner() != null && - this.building.getOwner().getObjectType().equals(GameObjectType.PlayerCharacter)) + this.building.getOwner().guild != null) this.name += " the " + this.contract.getName(); }catch(Exception e){