Skip to content

Commit

Permalink
Revert "* Fix concurrency crash in closeAllShopWindows caused by use-…
Browse files Browse the repository at this point in the history
…after-free"

This reverts commit 2ffc69f.
  • Loading branch information
jprzimba committed Jan 10, 2025
1 parent eb9f613 commit 2485b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creatures/npcs/npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ void Npc::removeShopPlayer(uint32_t playerGUID) {
}

void Npc::closeAllShopWindows() {
for (const auto playerGUID : shopPlayers | std::views::keys) {
for (const auto &playerGUID : shopPlayers | std::views::keys) {
const auto &player = g_game().getPlayerByGUID(playerGUID);
if (player) {
player->closeShopWindow();
Expand Down

0 comments on commit 2485b41

Please sign in to comment.