mirror of
https://github.com/azerothcore/mod-solo-lfg
synced 2025-11-29 15:58:17 +08:00
update LGF_Solo.cpp to work on docker
This commit is contained in:
@@ -20,7 +20,7 @@ public:
|
|||||||
|
|
||||||
lfg_solo_announce() : PlayerScript("lfg_solo_announce") {}
|
lfg_solo_announce() : PlayerScript("lfg_solo_announce") {}
|
||||||
|
|
||||||
void OnLogin(Player* player)
|
void OnLogin(Player* __attribute__ ((unused))player)
|
||||||
{
|
{
|
||||||
// Announce Module
|
// Announce Module
|
||||||
if (sConfigMgr->GetBoolDefault("SoloLFG.Announce", true))
|
if (sConfigMgr->GetBoolDefault("SoloLFG.Announce", true))
|
||||||
@@ -37,7 +37,7 @@ public:
|
|||||||
|
|
||||||
// Docker Installation prevents warnings. In order to avoid the issue, we need to add __attribute__ ((unused))
|
// Docker Installation prevents warnings. In order to avoid the issue, we need to add __attribute__ ((unused))
|
||||||
// to the player variable to tell the compiler it is fine not to use it.
|
// to the player variable to tell the compiler it is fine not to use it.
|
||||||
void OnLogin(Player* player)
|
void OnLogin(Player* __attribute__ ((unused))player)
|
||||||
{
|
{
|
||||||
if (sConfigMgr->GetIntDefault("SoloLFG.Enable", true))
|
if (sConfigMgr->GetIntDefault("SoloLFG.Enable", true))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user