mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Warning fix
This commit is contained in:
@@ -3100,7 +3100,7 @@ static void PushRespawnInfoFrom(std::vector<RespawnInfo*>& data, RespawnInfoMap
|
||||
data.push_back(pair.second);
|
||||
}
|
||||
|
||||
void Map::GetRespawnInfo(std::vector<RespawnInfo*>& respawnData, SpawnObjectTypeMask types, uint32 zoneId) const
|
||||
void Map::GetRespawnInfo(std::vector<RespawnInfo*>& respawnData, SpawnObjectTypeMask types) const
|
||||
{
|
||||
if (types & SPAWN_TYPEMASK_CREATURE)
|
||||
PushRespawnInfoFrom(respawnData, _creatureRespawnTimesBySpawnId);
|
||||
|
||||
@@ -769,7 +769,7 @@ class TC_GAME_API Map : public GridRefManager<NGridType>
|
||||
void DeleteRespawnInfo(RespawnInfo* info, SQLTransaction dbTrans = nullptr);
|
||||
|
||||
public:
|
||||
void GetRespawnInfo(std::vector<RespawnInfo*>& respawnData, SpawnObjectTypeMask types, uint32 zoneId = 0) const;
|
||||
void GetRespawnInfo(std::vector<RespawnInfo*>& respawnData, SpawnObjectTypeMask types) const;
|
||||
RespawnInfo* GetRespawnInfo(SpawnObjectType type, ObjectGuid::LowType spawnId) const;
|
||||
void Respawn(SpawnObjectType type, ObjectGuid::LowType spawnId, SQLTransaction dbTrans = nullptr)
|
||||
{
|
||||
|
||||
@@ -706,7 +706,7 @@ public:
|
||||
|
||||
handler->PSendSysMessage(LANG_LIST_RESPAWNS_LISTHEADER);
|
||||
std::vector<RespawnInfo*> respawns;
|
||||
map->GetRespawnInfo(respawns, SpawnObjectTypeMask(1 << type), range ? 0 : zoneId);
|
||||
map->GetRespawnInfo(respawns, SpawnObjectTypeMask(1 << type));
|
||||
for (RespawnInfo const* ri : respawns)
|
||||
{
|
||||
SpawnData const* data = sObjectMgr->GetSpawnData(ri->type, ri->spawnId);
|
||||
|
||||
@@ -1902,7 +1902,7 @@ public:
|
||||
|
||||
// Now handle any that had despawned, but had respawn time logged.
|
||||
std::vector<RespawnInfo*> data;
|
||||
player->GetMap()->GetRespawnInfo(data, SPAWN_TYPEMASK_ALL, 0);
|
||||
player->GetMap()->GetRespawnInfo(data, SPAWN_TYPEMASK_ALL);
|
||||
if (!data.empty())
|
||||
{
|
||||
uint32 const gridId = Trinity::ComputeGridCoord(player->GetPositionX(), player->GetPositionY()).GetId();
|
||||
|
||||
Reference in New Issue
Block a user