Core/Server: fix duplicated inserts into tutorials table for newly created characters

Port From (https://github.com/TrinityCore/TrinityCore/commit/26fe9496191225c8300ac57c07e9380193ec2c54)
This commit is contained in:
hondacrx
2019-08-16 21:38:01 -04:00
parent 3634bc7133
commit 653a9bb035
2 changed files with 4 additions and 2 deletions
+4
View File
@@ -449,6 +449,10 @@ namespace Game
stmt.AddValue(SharedConst.MaxAccountTutorialValues, GetAccountId());
trans.Append(stmt);
// now has, set flag so next save uses update query
if (!hasTutorialsInDB)
tutorialsChanged |= TutorialsFlag.LoadedFromDB;
tutorialsChanged &= ~TutorialsFlag.Changed;
}