From 2843b86a93105e0c77671ec79dc79e2eed19d17e Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 31 Aug 2023 21:53:56 -0400 Subject: [PATCH] Moved agent type to top of constructor. --- src/engine/objects/Mob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 7525efa8..2ea937b2 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -103,6 +103,7 @@ public class Mob extends AbstractIntelligenceAgent { this.dbID = rs.getInt(1); this.loadID = rs.getInt("mob_mobbaseID"); this.gridObjectType = GridObjectType.DYNAMIC; + this.agentType = AIAgentType.MOBILE; this.spawnRadius = rs.getFloat("mob_spawnRadius"); this.spawnTime = rs.getInt("mob_spawnTime"); @@ -151,7 +152,6 @@ public class Mob extends AbstractIntelligenceAgent { this.currentID = this.dbID; - this.agentType = AIAgentType.MOBILE; } catch (Exception e) { Logger.error(e + " " + this.dbID); }