[11483] Change postfix iterator increments to prefix where possible

This commit is contained in:
zergtmn 2011-05-14 16:53:52 +06:00
parent 4cfa51d799
commit 777ffe8dc2
4 changed files with 8 additions and 12 deletions

View file

@ -824,7 +824,7 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
}
}
for (PlayerCreateInfoItems::const_iterator item_id_itr = info->item.begin(); item_id_itr!=info->item.end(); ++item_id_itr++)
for (PlayerCreateInfoItems::const_iterator item_id_itr = info->item.begin(); item_id_itr != info->item.end(); ++item_id_itr)
StoreNewItemInBestSlots(item_id_itr->item_id, item_id_itr->item_amount);
// bags and main-hand weapon must equipped at this moment