mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 00:48:39 +01:00
[7553] Fixed character save/creating. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -197,10 +197,8 @@ void AchievementMgr::SaveToDB()
|
||||
|
||||
if(need_execute)
|
||||
{
|
||||
CharacterDatabase.BeginTransaction ();
|
||||
CharacterDatabase.Execute( ssdel.str().c_str() );
|
||||
CharacterDatabase.Execute( ssins.str().c_str() );
|
||||
CharacterDatabase.CommitTransaction ();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,12 +256,10 @@ void AchievementMgr::SaveToDB()
|
||||
|
||||
if(need_execute_del || need_execute_ins)
|
||||
{
|
||||
CharacterDatabase.BeginTransaction ();
|
||||
if(need_execute_del)
|
||||
CharacterDatabase.Execute( ssdel.str().c_str() );
|
||||
if(need_execute_ins)
|
||||
CharacterDatabase.Execute( ssins.str().c_str() );
|
||||
CharacterDatabase.CommitTransaction ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -444,7 +444,6 @@ void ReputationMgr::LoadFromDB(QueryResult *result)
|
||||
|
||||
void ReputationMgr::SaveToDB()
|
||||
{
|
||||
CharacterDatabase.BeginTransaction();
|
||||
for(FactionStateList::iterator itr = m_factions.begin(); itr != m_factions.end(); ++itr)
|
||||
{
|
||||
if (itr->second.Changed)
|
||||
@@ -454,7 +453,6 @@ void ReputationMgr::SaveToDB()
|
||||
itr->second.Changed = false;
|
||||
}
|
||||
}
|
||||
CharacterDatabase.CommitTransaction();
|
||||
}
|
||||
|
||||
void ReputationMgr::UpdateRankCounters( ReputationRank old_rank, ReputationRank new_rank )
|
||||
|
||||
Reference in New Issue
Block a user