Exemplo n.º 1
0
 // Remove all references to objects belonging to a given cell
 void removeCell(const MWWorld::Ptr::CellStore *cell)
 {
   PtrMap::iterator it2, it = sounds.begin();
   while(it != sounds.end())
     {
       // Make sure to increase the iterator before we erase it.
       it2 = it++;
       if(it2->first.getCell() == cell)
         clearAll(it2);
     }
 }