From 1ccdebe07091b5b6900f75ed8967a8c14c099738 Mon Sep 17 00:00:00 2001
From: Nikos Karastathis <n.karastathis@kit.edu>
Date: Wed, 28 Sep 2022 19:54:32 +0200
Subject: [PATCH] this & causes a seg fault

---
 corsika/framework/core/Step.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/corsika/framework/core/Step.hpp b/corsika/framework/core/Step.hpp
index 4b6fd6b10..2ad6fdbcf 100644
--- a/corsika/framework/core/Step.hpp
+++ b/corsika/framework/core/Step.hpp
@@ -100,7 +100,7 @@ namespace corsika {
                                                      // Where does it happen, here?
     }
 
-    Point const& getPositionPre() const { return getParticlePre().getPosition(); }
+    Point const getPositionPre() const { return getParticlePre().getPosition(); }
 
     Point getPositionPost() const {
       Point const& pos_Pre = getPositionPre();
-- 
GitLab