diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2021-01-01 04:03:19 +0100 |
|---|---|---|
| committer | Treeston <treeston.mmoc@gmail.com> | 2021-01-01 04:03:52 +0100 |
| commit | 94c03b2107ad6603aaf185d58d63480e79c97e76 (patch) | |
| tree | 06c748725aa321f1fee519ae4a2933105c1baf2a /src/server/game/Maps/Map.cpp | |
| parent | b8ac98dd1a11198967db0e43e0729dd91de1b25f (diff) | |
Core/Maps: Move some more Map internals to actually be... internals.
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 d727ed452f8..a751dcf3073 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -3093,11 +3093,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); } @@ -3173,7 +3173,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); auto it = map.find(spawnId); |
