diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2017-08-01 17:58:17 +0200 |
|---|---|---|
| committer | Treeston <treeston.mmoc@gmail.com> | 2017-08-01 17:58:17 +0200 |
| commit | 3b02029cb6977edd30d2b744caf2f5c4ae2e5721 (patch) | |
| tree | 8bba8c58a42ed286f783750f7ea209e25bb33713 /src | |
| parent | fcd6fe0aac0b906e2cf8e2379d94a7d73384c160 (diff) | |
remove an unused variable (follow-up fcd6fe0)
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/scripts/Commands/cs_list.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/server/scripts/Commands/cs_list.cpp b/src/server/scripts/Commands/cs_list.cpp index 4c77bb92e14..a225b9c217a 100644 --- a/src/server/scripts/Commands/cs_list.cpp +++ b/src/server/scripts/Commands/cs_list.cpp @@ -648,13 +648,10 @@ public: static bool HandleListSpawnPointsCommand(ChatHandler* handler, char const* /*args*/) { Player const* player = handler->GetSession()->GetPlayer(); - if (!player) - return false; - Map const* map = player->GetMap(); + Map const* map = player->FindMap(); if (!map) return false; - LocaleConstant const locale = handler->GetSession()->GetSessionDbcLocale(); uint32 const mapId = map->GetId(); bool const showAll = map->IsBattlegroundOrArena() || map->IsDungeon(); handler->PSendSysMessage("Listing all spawn points in map %u (%s)%s:", mapId, map->GetMapName(), showAll ? "" : " within 5000yd"); @@ -692,10 +689,8 @@ public: { // We need a player Player const* player = handler->GetSession()->GetPlayer(); - if (!player) - return false; // And we need a map - Map const* map = player->GetMap(); + Map const* map = player->FindMap(); if (!map) return false; |
