[7553] Fixed character save/creating.

This commit is contained in:
VladimirMangos 2009-03-27 06:01:24 +03:00
parent c4d4bb5620
commit b768401438
3 changed files with 1 additions and 7 deletions

View file

@ -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 ();
}
}
}