diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-07-17 19:14:13 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-07-17 19:14:13 +0200 |
commit | b8e52fd90bdab6e720d13e44c64483945e139fa2 (patch) | |
tree | 23217ab42d5d99f6042fd7bc22fafc3a242d2dfb /src/server/game/Maps/MapInstanced.cpp | |
parent | 87b0a193049c23356b449b48dda1d56262d9c0af (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.cpp | 7 |
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); |