mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7553] Fixed character save/creating.
This commit is contained in:
parent
c4d4bb5620
commit
b768401438
3 changed files with 1 additions and 7 deletions
|
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue