mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[8586] Fixed crash when no event indexes loaded.
Minor coding style fixes. Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
b9168145b5
commit
9e669137a1
1 changed files with 11 additions and 6 deletions
|
|
@ -2137,8 +2137,14 @@ void BattleGroundMgr::LoadBattleEventIndexes()
|
|||
{
|
||||
barGoLink bar(1);
|
||||
bar.step();
|
||||
|
||||
sLog.outString();
|
||||
sLog.outErrorDb(">> Loaded 0 battleground eventindexes.");
|
||||
return;
|
||||
}
|
||||
|
||||
barGoLink bar(result->GetRowCount());
|
||||
|
||||
do
|
||||
{
|
||||
bar.step();
|
||||
|
|
@ -2191,9 +2197,8 @@ void BattleGroundMgr::LoadBattleEventIndexes()
|
|||
++count;
|
||||
|
||||
} while(result->NextRow());
|
||||
|
||||
sLog.outString();
|
||||
sLog.outString( ">> Loaded %u battleground eventindexes", count);
|
||||
if (count == 0)
|
||||
return;
|
||||
delete result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue