fix issue when addons are not saved after relog

This commit is contained in:
ErikasKontenis 2019-12-14 13:14:24 +02:00
parent e576c77f5f
commit 585a6e76ff

View File

@ -781,6 +781,7 @@ bool IOLoginData::savePlayer(Player* player)
query.str(std::string());
DBInsert storageQuery("INSERT INTO `player_storage` (`player_id`, `key`, `value`) VALUES ");
player->genReservedStorageRange();
for (const auto& it : player->storageMap) {
query << player->getGUID() << ',' << it.first << ',' << it.second;