]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSBadChannelsSPD.cxx
fix in calling of gaussian spread function
[u/mrichter/AliRoot.git] / ITS / AliITSBadChannelsSPD.cxx
index a8fb7c9256a8d7bbee918c1d0d9ba417d2eb9ade..77cd8de1e4acea2ff45c15312fe0a391298cdccb 100644 (file)
@@ -212,7 +212,9 @@ TObjArray* AliITSBadChannelsSPD::CreateModuleObjArray(Int_t module) const
       while (i < kSize)
        {
          // Create and add the current channel
-         AliITSChannelSPD *channel = new AliITSChannelSPD(fBadChannelsArray[position++], fBadChannelsArray[position++]);
+         Int_t p1 = position++;
+         Int_t p2 = position++;
+         AliITSChannelSPD *channel = new AliITSChannelSPD(fBadChannelsArray[p1], fBadChannelsArray[p2]);
          moduleArray->Add(channel);
 
          // Go to next bad channel