Index: /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsIntensityCam.cc
===================================================================
--- /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsIntensityCam.cc	(revision 5015)
+++ /trunk/MagicSoft/Mars/mbadpixels/MBadPixelsIntensityCam.cc	(revision 5016)
@@ -87,10 +87,5 @@
 void MBadPixelsIntensityCam::AddToList( const char* name, const MGeomCam &geom) 
 {
-
-  const Int_t size = GetSize();
-  fCams->Expand(size+1);
-
-  (*fCams)[size] = new MBadPixelsCam;
-
+  InitSize(GetSize()+1);
   GetCam()->SetName(name);
   GetCam()->Init(geom);
