update fix error

This commit is contained in:
Micrah
2019-12-15 06:26:47 +11:00
parent ffa91c6718
commit c856bfabef

View File

@@ -16,19 +16,20 @@ class lfg_solo : public PlayerScript
public: public:
lfg_solo() : PlayerScript("lfg_solo") { } 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() void AddScLfg_SoloScripts()
{ {
new lfg_solo(); new lfg_solo();
} }