diff --git a/NPLib/Physics/NPReaction.h b/NPLib/Physics/NPReaction.h index b8aca5c9cb1aa7b0295c8ad5d0bf2f61cadf24ee..969e6ba3edfcb0ec13906c006b0a19e61b5b51a8 100644 --- a/NPLib/Physics/NPReaction.h +++ b/NPLib/Physics/NPReaction.h @@ -57,8 +57,8 @@ namespace NPL{ class Reaction{ public: // Constructors and Destructors - Reaction(); - ~Reaction(); + Reaction(); + virtual ~Reaction(); public: // Various Method void ReadConfigurationFile(string Path); diff --git a/NPLib/Sharc/TSharcPhysics.cxx b/NPLib/Sharc/TSharcPhysics.cxx index 2d3ead7d307713210e461c1f8dc13622ec85ff6e..915c40fc4c80ce96fbdcb4a51d516253f1b24a38 100644 --- a/NPLib/Sharc/TSharcPhysics.cxx +++ b/NPLib/Sharc/TSharcPhysics.cxx @@ -439,6 +439,7 @@ void TSharcPhysics::ReadConfiguration(string Path) string DataBuffer ; double R,Phi,Z; + R = 0 ; Phi = 0 ; Z = 0; TVector3 Pos; bool check_R = false ; bool check_Phi = false ;