Core/Pools: Added missing check in loop

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-11-12 17:12:38 +01:00
parent 5f4b97fcf7
commit 8984e9036d

View File

@@ -956,6 +956,8 @@ void PoolMgr::SaveQuestsToDB()
for (PoolGroupQuestMap::iterator itr = mPoolQuestGroups.begin(); itr != mPoolQuestGroups.end(); ++itr)
{
if (itr->isEmpty())
continue;
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_QUEST_POOL_SAVE);
stmt->setUInt32(0, itr->GetPoolId());
trans->Append(stmt);