From 57cf043aec2135888f9f4935918b4fbd6f9bc656 Mon Sep 17 00:00:00 2001 From: Vincent-Michael Date: Mon, 28 Apr 2014 09:19:37 +0200 Subject: Core/Creature: Missed changes in c536305e3a3c4f41e94d14fae73ba7a2d8d13be2 --- src/server/scripts/Commands/cs_npc.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp index 5c9d5ee87ed..9856a77b61f 100644 --- a/src/server/scripts/Commands/cs_npc.cpp +++ b/src/server/scripts/Commands/cs_npc.cpp @@ -596,16 +596,13 @@ public: // Update in memory.. if (CreatureTemplate const* cinfo = creature->GetCreatureTemplate()) - { const_cast(cinfo)->faction = factionId; - } // ..and DB PreparedStatement* stmt = WorldDatabase.GetPreparedStatement(WORLD_UPD_CREATURE_FACTION); stmt->setUInt16(0, uint16(factionId)); - stmt->setUInt16(1, uint16(factionId)); - stmt->setUInt32(2, creature->GetEntry()); + stmt->setUInt32(1, creature->GetEntry()); WorldDatabase.Execute(stmt); -- cgit v1.2.3