From f80b05c6741203eb97da75c51529b98d899e0a72 Mon Sep 17 00:00:00 2001 From: Micrah <44911744+milestorme@users.noreply.github.com> Date: Fri, 3 Jan 2020 18:38:08 +1100 Subject: [PATCH] update Lfg_Solo.cpp Thanks to Artanisx for updates https://github.com/Artanisx/mod-solo-lfg/blob/master/src/Lfg_Solo.cpp Extra Credits added --- src/Lfg_Solo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Lfg_Solo.cpp b/src/Lfg_Solo.cpp index 8aa7d4e..4cb08b3 100644 --- a/src/Lfg_Solo.cpp +++ b/src/Lfg_Solo.cpp @@ -3,6 +3,7 @@ ** AzerothCore 2019 http://www.azerothcore.org/ ** Conan513 https://github.com/conan513 ** Made into a module by Micrah https://github.com/milestorme/ +** Updated to work with AzerothCore Docker Installations by Artanisx https://github.com/Artanisx/ */ #include "ScriptMgr.h" @@ -18,7 +19,9 @@ class lfg_solo : public PlayerScript public: lfg_solo() : PlayerScript("lfg_solo") { } - void OnLogin(Player* player) + // 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. + void OnLogin(Player* __attribute__ ((unused))player) { if (sConfigMgr->GetIntDefault("LFG.SoloMode", true)) {