Skip to content

Commit de317ee

Browse files
committed
Update mod_zone_difficulty_handler.cpp
1 parent f1a14e6 commit de317ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod_zone_difficulty_handler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ void ZoneDifficulty::ProcessCreatureDeath(Map* map, uint32 entry)
11391139

11401140
auto [setting, zoneName] = data;
11411141

1142-
map->DoForAllPlayers([=](Player* player)
1142+
map->DoForAllPlayers([setting, zoneName](Player* player)
11431143
{
11441144
player->UpdatePlayerSetting(ModZoneDifficultyString + "ct", setting, 1);
11451145
player->SendSystemMessage(Acore::StringFormat("Congratulations on completing {}!", zoneName));

0 commit comments

Comments
 (0)