*use ASSERT macro instead of regular assert for better output.
--HG-- branch : trunk
This commit is contained in:
1 parent
3dc29732b7
commit
48b360097c
50 files changed
+261
-261
No files matched your search
@@ -190,13 +190,13 @@ InstanceMap* MapInstanced::CreateInstance(uint32 InstanceId, InstanceSave *save,
|
||||
if (!entry)
|
||||
{
|
||||
sLog.outError("CreateInstance: no entry for map %d", GetId());
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
}
|
||||
const InstanceTemplate * iTemplate = objmgr.GetInstanceTemplate(GetId());
|
||||
if (!iTemplate)
|
||||
{
|
||||
sLog.outError("CreateInstance: no instance template for map %d", GetId());
|
||||
assert(false);
|
||||
ASSERT(false);
|
||||
}
|
||||
|
||||
// some instances only have one difficulty
|
||||
@@ -261,6 +261,6 @@ bool MapInstanced::DestroyInstance(InstancedMaps::iterator &itr)
|
||||
|
||||
bool MapInstanced::CanEnter(Player * /*player*/)
|
||||
{
|
||||
//assert(false);
|
||||
//ASSERT(false);
|
||||
return true;
|
||||
}
|
||||
Reference in new issue
Block a user