diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2021-01-01 04:03:19 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-03-05 17:12:51 +0100 |
| commit | 5b9fec5f0befaa96221ccf57285cdb4f1a1faf2e (patch) | |
| tree | 181be18fad6a8c1c7c6992adb9ded8691de13ceb /src/server/game/Maps/Map.cpp | |
| parent | b5f3a6fd80c105f94a4fc551be8349ea56e7b251 (diff) | |
Core/Maps: Move some more Map internals to actually be... internals.
(cherry picked from commit 94c03b2107ad6603aaf185d58d63480e79c97e76)
Diffstat (limited to 'src/server/game/Maps/Map.cpp')
| -rw-r--r-- | src/server/game/Maps/Map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index b20c50fd19e..06586100fa0 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -3218,11 +3218,11 @@ bool Map::CheckRespawn(RespawnInfo* info) return true; } -void Map::Respawn(RespawnInfo const* info, CharacterDatabaseTransaction dbTrans) +void Map::Respawn(RespawnInfo* info, CharacterDatabaseTransaction dbTrans) { if (info->respawnTime <= GameTime::GetGameTime()) return; - const_cast<RespawnInfo*>(info)->respawnTime = GameTime::GetGameTime(); + info->respawnTime = GameTime::GetGameTime(); _respawnTimes.increase(info->handle); SaveRespawnInfoDB(*info, dbTrans); } @@ -3300,7 +3300,7 @@ void Map::GetRespawnInfo(std::vector<RespawnInfo const*>& respawnData, SpawnObje PushRespawnInfoFrom(respawnData, _gameObjectRespawnTimesBySpawnId); } -RespawnInfo const* Map::GetRespawnInfo(SpawnObjectType type, ObjectGuid::LowType spawnId) const +RespawnInfo* Map::GetRespawnInfo(SpawnObjectType type, ObjectGuid::LowType spawnId) const { RespawnInfoMap const* map = GetRespawnMapForType(type); if (!map) |
