Ref https://github.com/TrinityCore/TrinityCore/commit/04da37c4fb0eeef6ea3bbbd205c9ffcc1005a86c (cherry picked from commit 4455c50447caa4472d2f0215221aa2e0723cafb8)
Ref https://github.com/TrinityCore/TrinityCore/commit/04da37c4fb0eeef6ea3bbbd205c9ffcc1005a86c (cherry picked from commit 4455c50447caa4472d2f0215221aa2e0723cafb8)