Ptotections added. (M. van Leeuwen)
[u/mrichter/AliRoot.git] / PYTHIA6 / AliPythia.cxx
index fd73290e0ef06a42692c9a17236ca3561bd784df..2fa643e816e48b542aff31a7abe6a327c8e8b803 100644 (file)
@@ -796,7 +796,7 @@ void  AliPythia::Quench()
            //
            // Avoid complete loss
            //
-           if (fZQuench[j] == 1.) fZQuench[j] = fZmax;
+           if (fZQuench[j] > fZmax) fZQuench[j] = fZmax;
            //
            // Some debug printing