[8761] typo fix and codestyle

typo was at PetLevelInfo loading
which didn't display the progressbar right when
there was no petlevelinfo available
This commit is contained in:
begemot 2009-11-01 21:02:40 +01:00 committed by balrok
parent 84573285db
commit e83563b671
5 changed files with 9 additions and 11 deletions

View file

@ -182,22 +182,19 @@ InstanceMap* MapInstanced::CreateInstance(uint32 InstanceId, InstanceSave *save,
Guard guard(*this);
// make sure we have a valid map id
const MapEntry* entry = sMapStore.LookupEntry(GetId());
if(!entry)
if (!sMapStore.LookupEntry(GetId()))
{
sLog.outError("CreateInstance: no entry for map %d", GetId());
assert(false);
}
const InstanceTemplate * iTemplate = objmgr.GetInstanceTemplate(GetId());
if(!iTemplate)
if (!objmgr.GetInstanceTemplate(GetId()))
{
sLog.outError("CreateInstance: no instance template for map %d", GetId());
assert(false);
}
// some instances only have one difficulty
MapDifficulty const* mapDiff = GetMapDifficultyData(GetId(),difficulty);
if (!mapDiff)
if (!GetMapDifficultyData(GetId(),difficulty))
difficulty = DUNGEON_DIFFICULTY_NORMAL;
sLog.outDebug("MapInstanced::CreateInstance: %s map instance %d for %d created with difficulty %s", save?"":"new ", InstanceId, GetId(), difficulty?"heroic":"normal");

View file

@ -2163,6 +2163,7 @@ void ObjectMgr::LoadPetLevelInfo()
if (!result)
{
barGoLink bar( 1 );
bar.step();
sLog.outString();
sLog.outString(">> Loaded %u level pet stats definitions", count);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8760"
#define REVISION_NR "8761"
#endif // __REVISION_NR_H__