diff --git a/src/game/AI/ScriptDevAI/scripts/outland/hellfire_citadel/shattered_halls/shattered_halls.cpp b/src/game/AI/ScriptDevAI/scripts/outland/hellfire_citadel/shattered_halls/shattered_halls.cpp index 9927ac0948..0f7c2b3d43 100644 --- a/src/game/AI/ScriptDevAI/scripts/outland/hellfire_citadel/shattered_halls/shattered_halls.cpp +++ b/src/game/AI/ScriptDevAI/scripts/outland/hellfire_citadel/shattered_halls/shattered_halls.cpp @@ -550,7 +550,7 @@ void instance_shattered_halls::Update(uint32 diff) void instance_shattered_halls::AddInstanceEvent(uint32 id, std::function check, std::function successEvent) { - AddCustomAction(id, false, [instance = this->instance, check = check, successEvent = successEvent]() + AddCustomAction(id, false, [instance = this->instance, check = check, successEvent = successEvent, id, this]() { for (const auto& data : instance->GetPlayers()) { @@ -560,6 +560,7 @@ void instance_shattered_halls::AddInstanceEvent(uint32 id, std::function check, std::function successEvent) { - AddCustomAction(id, false, [instance = this->instance, check = check, successEvent = successEvent]() + AddCustomAction(id, false, [instance = this->instance, check = check, successEvent = successEvent, id, this]() { for (const auto& data : instance->GetPlayers()) { @@ -47,6 +47,7 @@ void instance_botanica::AddInstanceEvent(uint32 id, std::function