From e52a0d64ee5822fde973ef70ad49ed57b8341a96 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 21 Feb 2013 23:22:07 +0100 Subject: [PATCH] GModels now returns pointer, not reference. --- src/ctobssim/ctobssim.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ctobssim/ctobssim.cpp b/src/ctobssim/ctobssim.cpp index 36aeb61..e04c7e9 100644 --- a/src/ctobssim/ctobssim.cpp +++ b/src/ctobssim/ctobssim.cpp @@ -690,7 +690,7 @@ void ctobssim::simulate_source(GCTAObservation* obs, const GModels& models, // Get sky model (NULL if not a sky model) const GModelSky* model = - dynamic_cast(&models[i]); + dynamic_cast(models[i]); // If we have a sky model then simulate photons if (model != NULL) { @@ -868,7 +868,7 @@ void ctobssim::simulate_background(GCTAObservation* obs, // Get model (NULL if not a radial acceptance model) const GCTAModelRadialAcceptance* model = - dynamic_cast(&models[i]); + dynamic_cast(models[i]); // If we have a radial acceptance model then simulate events if (model != NULL) { -- libgit2 0.21.4