Core/CharDB cleanup: change creature_respawn and gameobject_respawn column names to lowerCamel, rename instance column to instanceId and move all queries to these tables to prepared statements.
Fix import error in character_database.sql.
This commit is contained in:
@@ -166,7 +166,10 @@ bool OPvPCapturePoint::DelCreature(uint32 type)
|
||||
//if (Map * map = sMapMgr->FindMap(cr->GetMapId()))
|
||||
// map->Remove(cr,false);
|
||||
// delete respawn time for this creature
|
||||
CharacterDatabase.PExecute("DELETE FROM creature_respawn WHERE guid = '%u'", guid);
|
||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CREATURE_RESPAWN_BY_GUID);
|
||||
stmt->setUInt32(0, guid);
|
||||
CharacterDatabase.Execute(stmt);
|
||||
|
||||
cr->AddObjectToRemoveList();
|
||||
sObjectMgr->DeleteCreatureData(guid);
|
||||
m_CreatureTypes[m_Creatures[type]] = 0;
|
||||
|
||||
Reference in New Issue
Block a user