InfoBlock::~InfoBlock()
{
- for(std::vector<InfoBoxLine*>::iterator i = lines.begin(); i != lines.end(); i++) {
+ for(std::vector<InfoBoxLine*>::iterator i = lines.begin(); i != lines.end(); ++i) {
delete *i;
}
}
// first hide all other InfoBlocks' messages in same sector
Sector* parent = Sector::current();
if (!parent) return;
- for (Sector::GameObjects::iterator i = parent->gameobjects.begin(); i != parent->gameobjects.end(); i++) {
+ for (Sector::GameObjects::iterator i = parent->gameobjects.begin(); i != parent->gameobjects.end(); ++i) {
InfoBlock* block = dynamic_cast<InfoBlock*>(i->get());
if (!block) continue;
if (block != this) block->hide_message();