aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/MapInstanced.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-07-17 19:14:13 +0200
committerShauren <shauren.trinity@gmail.com>2022-07-17 19:14:13 +0200
commitb8e52fd90bdab6e720d13e44c64483945e139fa2 (patch)
tree23217ab42d5d99f6042fd7bc22fafc3a242d2dfb /src/server/game/Maps/MapInstanced.cpp
parent87b0a193049c23356b449b48dda1d56262d9c0af (diff)
Core/Maps: Made instance_template no longer required to create and enter instance maps
Diffstat (limited to 'src/server/game/Maps/MapInstanced.cpp')
-rw-r--r--src/server/game/Maps/MapInstanced.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/server/game/Maps/MapInstanced.cpp b/src/server/game/Maps/MapInstanced.cpp
index 89f22965d94..934a807394f 100644
--- a/src/server/game/Maps/MapInstanced.cpp
+++ b/src/server/game/Maps/MapInstanced.cpp
@@ -24,7 +24,6 @@
#include "Log.h"
#include "MapManager.h"
#include "MMapFactory.h"
-#include "ObjectMgr.h"
#include "Player.h"
#include "ScenarioMgr.h"
#include "VMapFactory.h"
@@ -222,12 +221,6 @@ InstanceMap* MapInstanced::CreateInstance(uint32 InstanceId, InstanceSave* save,
TC_LOG_ERROR("maps", "CreateInstance: no entry for map %d", GetId());
ABORT();
}
- InstanceTemplate const* iTemplate = sObjectMgr->GetInstanceTemplate(GetId());
- if (!iTemplate)
- {
- TC_LOG_ERROR("maps", "CreateInstance: no instance template for map %d", GetId());
- ABORT();
- }
// some instances only have one difficulty
sDB2Manager.GetDownscaledMapDifficultyData(GetId(), difficulty);