[2983] Fix compile for CMaNGOS 12587

Thanks to dbauz for pointing. Requires CMaNGOS [12587]

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>