Skip to content

Commit

Permalink
fix: initialising world in GdmlDetectorConstruction (#1371)
Browse files Browse the repository at this point in the history
This PR is a one-liner (a few characters actually), which fixes the initialised world value to `nullptr` hence the detector construction runs now after checking
```c++
if (m_world == nullptr){
construct()
}
```
  • Loading branch information
asalzburger committed Aug 3, 2022
1 parent 789ce69 commit 511528b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class GdmlDetectorConstruction final : public G4VUserDetectorConstruction {
/// Path to the Gdml file
std::string m_path;
/// Cached worled volume
G4VPhysicalVolume* m_world;
G4VPhysicalVolume* m_world = nullptr;
};

} // namespace ActsExamples

0 comments on commit 511528b

Please sign in to comment.