mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 21:56:22 +00:00
fix(Core/Instance): Save persistent data to DB on updates (#20555)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user