diff --git a/src/Lfg_Solo.cpp b/src/Lfg_Solo.cpp index a312686..1cd5853 100644 --- a/src/Lfg_Solo.cpp +++ b/src/Lfg_Solo.cpp @@ -10,6 +10,7 @@ #include "World.h" #include "LFGMgr.h" #include "Chat.h" +#include "Opcodes.h" class lfg_solo : public PlayerScript { @@ -19,12 +20,12 @@ public: void OnLogin(Player* player) { if (sConfigMgr->GetIntDefault("LFG.SoloMode", true)) - { - if (!sLFGMgr->IsSoloLFG()) { + if (!sLFGMgr->IsSoloLFG()) + { sLFGMgr->ToggleSoloLFG(); + } } - } } };