*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
@@ -154,7 +154,7 @@ InstanceSave::InstanceSave(uint16 MapId, uint32 InstanceId, Difficulty difficult
|
||||
InstanceSave::~InstanceSave()
|
||||
{
|
||||
// the players and groups must be unbound before deleting the save
|
||||
assert(m_playerList.empty() && m_groupList.empty());
|
||||
ASSERT(m_playerList.empty() && m_groupList.empty());
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -168,7 +168,7 @@ void InstanceSave::SaveToDB()
|
||||
Map *map = sMapMgr.FindMap(GetMapId(),m_instanceid);
|
||||
if (map)
|
||||
{
|
||||
assert(map->IsDungeon());
|
||||
ASSERT(map->IsDungeon());
|
||||
if (InstanceData *iData = ((InstanceMap*)map)->GetInstanceData())
|
||||
{
|
||||
data = iData->GetSaveData();
|
||||
@@ -222,7 +222,7 @@ bool InstanceSave::UnloadIfEmpty()
|
||||
void InstanceSaveManager::_DelHelper(DatabaseType &db, const char *fields, const char *table, const char *queryTail,...)
|
||||
{
|
||||
Tokens fieldTokens = StrSplit(fields, ", ");
|
||||
assert(fieldTokens.size() != 0);
|
||||
ASSERT(fieldTokens.size() != 0);
|
||||
|
||||
va_list ap;
|
||||
char szQueryTail [MAX_QUERY_LEN];
|
||||
|
||||
Reference in new issue
Block a user