aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Battlefield/Battlefield.cpp
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2013-01-30 08:39:06 +0100
committerSpp <spp@jorge.gr>2013-01-30 08:39:06 +0100
commitfa5dd4bd4e58c13229bcfb8e6bf879838de47e60 (patch)
tree45a12345e332e0f1099330fb2fe9e55026c084fb /src/server/game/Battlefield/Battlefield.cpp
parent02814975732f8e919d33ff8f2cbaf98f13e04f91 (diff)
Core/Misc: Remove some calls to const_cast
Diffstat (limited to 'src/server/game/Battlefield/Battlefield.cpp')
-rw-r--r--src/server/game/Battlefield/Battlefield.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Battlefield/Battlefield.cpp b/src/server/game/Battlefield/Battlefield.cpp
index dffdb2361d5..5f5a14814eb 100644
--- a/src/server/game/Battlefield/Battlefield.cpp
+++ b/src/server/game/Battlefield/Battlefield.cpp
@@ -816,7 +816,7 @@ Creature* Battlefield::SpawnCreature(uint32 entry, Position pos, TeamId team)
Creature* Battlefield::SpawnCreature(uint32 entry, float x, float y, float z, float o, TeamId team)
{
//Get map object
- Map* map = const_cast<Map*>(sMapMgr->CreateBaseMap(m_MapId));
+ Map* map = sMapMgr->CreateBaseMap(m_MapId);
if (!map)
{
sLog->outError(LOG_FILTER_BATTLEFIELD, "Battlefield::SpawnCreature: Can't create creature entry: %u map not found", entry);
@@ -854,7 +854,7 @@ Creature* Battlefield::SpawnCreature(uint32 entry, float x, float y, float z, fl
GameObject* Battlefield::SpawnGameObject(uint32 entry, float x, float y, float z, float o)
{
// Get map object
- Map* map = const_cast<Map*>(sMapMgr->CreateBaseMap(571)); // *vomits*
+ Map* map = sMapMgr->CreateBaseMap(571); // *vomits*
if (!map)
return 0;