Core/Misc: Code-style + some const methods.

This commit is contained in:
Chaplain
2012-06-21 21:05:45 +03:00
parent 98479c4555
commit 716e2db0e1
17 changed files with 37 additions and 38 deletions
+3 -3
View File
@@ -4816,11 +4816,11 @@ void ObjectMgr::LoadSpellScriptNames()
Field* fields = result->Fetch();
int32 spellId = fields[0].GetInt32();
int32 spellId = fields[0].GetInt32();
const char *scriptName = fields[1].GetCString();
bool allRanks = false;
if (spellId <=0)
if (spellId <= 0)
{
allRanks = true;
spellId = -spellId;
@@ -6553,7 +6553,7 @@ uint32 ObjectMgr::GetBaseXP(uint8 level)
return _baseXPTable[level] ? _baseXPTable[level] : 0;
}
uint32 ObjectMgr::GetXPForLevel(uint8 level)
uint32 ObjectMgr::GetXPForLevel(uint8 level) const
{
if (level < _playerXPperLevel.size())
return _playerXPperLevel[level];