From 585a6e76ff3dca467f06d8a54dd4ea1f48e3dcc2 Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Sat, 14 Dec 2019 13:14:24 +0200 Subject: [PATCH] fix issue when addons are not saved after relog --- src/iologindata.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/iologindata.cpp b/src/iologindata.cpp index 3a52c64..74c6f88 100644 --- a/src/iologindata.cpp +++ b/src/iologindata.cpp @@ -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;