Core/Creature: Missed changes in c536305e3a
This commit is contained in:
1 parent
c536305e3a
commit
57cf043aec
2 files changed
+2
-8
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user