From c856bfabefdcc4ec619c245a3bbf563ddacea80f Mon Sep 17 00:00:00 2001 From: Micrah <44911744+milestorme@users.noreply.github.com> Date: Sun, 15 Dec 2019 06:26:47 +1100 Subject: [PATCH] update fix error --- src/Lfg_Solo.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Lfg_Solo.cpp b/src/Lfg_Solo.cpp index 8eb91e3..a312686 100644 --- a/src/Lfg_Solo.cpp +++ b/src/Lfg_Solo.cpp @@ -16,19 +16,20 @@ class lfg_solo : public PlayerScript public: lfg_solo() : PlayerScript("lfg_solo") { } - void OnLogin(Player* player, bool /*loginFirst*/) + void OnLogin(Player* player) + { + if (sConfigMgr->GetIntDefault("LFG.SoloMode", true)) { - if (sConfigMgr->GetBoolDefault("LFG.SoloMode", true)) + if (!sLFGMgr->IsSoloLFG()) { - if (!sLFGMgr->IsSoloLFG()) - { - sLFGMgr->ToggleSoloLFG(); - } + sLFGMgr->ToggleSoloLFG(); } } + } }; void AddScLfg_SoloScripts() { new lfg_solo(); } +