Core/Creature: Missed changes in c536305e3a

This commit is contained in:
Vincent-Michael committed 2014-04-28 09:19:37 +02:00
1 parent c536305e3a
commit 57cf043aec
2 files changed
+2 -8

No files matched your search

+1 -4
View File
@@ -596,16 +596,13 @@ public:
// Update in memory..
if (CreatureTemplate const* cinfo = creature->GetCreatureTemplate())
{
const_cast<CreatureTemplate*>(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);