mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +01:00
Core/Misc: Fix some warnings
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
|
||||
void Battlenet::Friends::GetFriendsOfFriend::Read()
|
||||
{
|
||||
uint8 unk = _stream.Read<uint8>(2);
|
||||
uint32 unk1 = _stream.Read<uint32>(32);
|
||||
_stream.Read<uint8>(2);
|
||||
_stream.Read<uint32>(32);
|
||||
}
|
||||
|
||||
std::string Battlenet::Friends::GetFriendsOfFriend::ToString() const
|
||||
|
||||
@@ -260,9 +260,9 @@ namespace MMAP
|
||||
|
||||
for (uint32 i = 0; i < sMapStore.GetNumRows(); ++i)
|
||||
{
|
||||
if (const MapEntry* const map = sMapStore.LookupEntry(i))
|
||||
if (MapEntry const* map = sMapStore.LookupEntry(i))
|
||||
{
|
||||
if (map->rootPhaseMap == mapId)
|
||||
if (map->ParentMapID == int32(mapId))
|
||||
{
|
||||
PhasedTile* data = LoadTile(map->MapID, x, y);
|
||||
// only a few tiles have terrain swaps, do not write error for them
|
||||
|
||||
@@ -397,7 +397,7 @@ template<class T>
|
||||
AchievementMgr<T>::~AchievementMgr() { }
|
||||
|
||||
template<class T>
|
||||
void AchievementMgr<T>::SendPacket(WorldPacket* data) const { }
|
||||
void AchievementMgr<T>::SendPacket(WorldPacket const* /*data*/) const { }
|
||||
|
||||
template<>
|
||||
void AchievementMgr<Guild>::SendPacket(WorldPacket* data) const
|
||||
|
||||
@@ -108,7 +108,7 @@ public: npc_twilight_flame_caller() : CreatureScript("npc_twilight_flame_caller"
|
||||
|
||||
struct npc_twilight_flame_callerAI : public ScriptedAI
|
||||
{
|
||||
npc_twilight_flame_callerAI(Creature* creature) : ScriptedAI(creature), _summons(me), _instance(creature->GetInstanceScript())
|
||||
npc_twilight_flame_callerAI(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()), _summons(me)
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user