From e27ce0ae75da3b0f4dcb8c4f837f561c3cea5e07 Mon Sep 17 00:00:00 2001
From: Warren Lynch <warren.lynch@york.ac.uk>
Date: Tue, 7 Jul 2020 13:20:00 +0100
Subject: [PATCH] Correction to TACTIC.cc

---
 NPSimulation/Detectors/TACTIC/TACTIC.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/NPSimulation/Detectors/TACTIC/TACTIC.cc b/NPSimulation/Detectors/TACTIC/TACTIC.cc
index 554933ba1..08ca34161 100644
--- a/NPSimulation/Detectors/TACTIC/TACTIC.cc
+++ b/NPSimulation/Detectors/TACTIC/TACTIC.cc
@@ -251,7 +251,7 @@ void TACTIC::ConstructDetector(G4LogicalVolume* world){
 
     G4FastSimulationManager* mng = m_ReactionRegion->GetFastSimulationManager();
     unsigned int size = m_ReactionModel.size();
-    for(unsigned int i = 0 ; i < size ; i++){
+    for(unsigned int j = 0 ; j < size ; j++){
       mng->RemoveFastSimulationModel(m_ReactionModel[i]);
     }
     m_ReactionModel.clear();
-- 
GitLab