From caf54517bf17d8615f673112802684f76d7f0c7e Mon Sep 17 00:00:00 2001 From: Skjalf <47818697+Nyeriah@users.noreply.github.com> Date: Wed, 5 Apr 2023 13:40:21 -0300 Subject: [PATCH] =?UTF-8?q?fix(Scripts/IcecrownCitadel):=20Fix=20possible?= =?UTF-8?q?=20crash=20if=20bosses=20engage=20off=E2=80=A6=20(#15832)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(Scripts/IcecrownCitadel): Fix possible crash if bosses engage offline players --- .../Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp b/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp index 1b07ed48d..546fbb5f3 100644 --- a/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp @@ -1447,7 +1447,7 @@ public: bool CheckRequiredBosses(uint32 bossId, Player const* player) const override { - if (player->GetSession()->GetSecurity() >= SEC_MODERATOR) + if (player->GetSession() && player->GetSession()->GetSecurity() >= SEC_MODERATOR) { return true; }