fix(Core/Instance): Save persistent data to DB on updates (#20555)
This commit is contained in:
parent
b7732690c9
commit
587762ca36
1 changed files with 5 additions and 1 deletions
|
|
@ -393,7 +393,11 @@ void InstanceScript::StorePersistentData(uint32 index, uint32 data)
|
|||
return;
|
||||
}
|
||||
|
||||
persistentData[index] = data;
|
||||
if (persistentData[index] != data)
|
||||
{
|
||||
persistentData[index] = data;
|
||||
SaveToDB();
|
||||
}
|
||||
}
|
||||
|
||||
void InstanceScript::DoForAllMinions(uint32 id, std::function<void(Creature*)> exec)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue