]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSRecPoint.cxx
Coverity fix
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.cxx
index c4778b64d5cbda7200181d78a58413bfc6738337..ae5e5b9c961e0c9fc6095fd34b6deaf215cf57f6 100644 (file)
@@ -106,9 +106,11 @@ AliPHOSRecPoint& AliPHOSRecPoint::operator= (const AliPHOSRecPoint &rp)
   fIndexInList = rp.fIndexInList; 
   fLocPos = rp.fLocPos;
 
+  if (rp.fMulDigit>0) fDigitsList = new Int_t[rp.fMulDigit];
   for(Int_t i=0; i<fMaxDigit; i++)
     fDigitsList[i] = rp.fDigitsList[i];
 
+  if (rp.fMulTrack>0) fTracksList = new Int_t[rp.fMulTrack];
   for(Int_t i=0; i<fMaxTrack; i++)
     fTracksList[i] = rp.fTracksList[i];