mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 19:31:59 +01:00
Warning fix
This commit is contained in:
@@ -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