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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user