diff --git a/inst/cta/src/GCTACubeBackground.cpp b/inst/cta/src/GCTACubeBackground.cpp index c3dc7cc..5fb5d64 100644 --- a/inst/cta/src/GCTACubeBackground.cpp +++ b/inst/cta/src/GCTACubeBackground.cpp @@ -300,7 +300,7 @@ void GCTACubeBackground::fill(const GObservations& obs, GLog* log) } // Skip observation if we have a binned observation - if (obs->eventtype() == "CountsCube") { + if (cta->eventtype() == "CountsCube") { if (log != NULL) { *log << "Warning: Skipping binned observation "; *log << "\"" << cta->name() << "\"" <eventtype() == "CountsCube") { + if (cta->eventtype() == "CountsCube") { if (log != NULL) { *log << "Warning: Skipping binned observation "; *log << "\"" << cta->name() << "\"" <eventtype() == "CountsCube") { + if (cta->eventtype() == "CountsCube") { if (log != NULL) { *log << "Warning: Skipping binned observation "; *log << "\"" << cta->name() << "\"" <