]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/event_prev.C
Coverity
[u/mrichter/AliRoot.git] / EVE / alice-macros / event_prev.C
index fcf8c626da17f9ed3324afbafe3bb1d23b26daa7..e7fc6b923dc533607c5280f2cee2830578a18eef 100644 (file)
@@ -4,13 +4,14 @@
 /**************************************************************************
  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
- * full copyright notice.                                                 * 
+ * full copyright notice.                                                 *
  **************************************************************************/
+
 void event_prev()
 {
-  if(gEvent == 0) {
-    printf("AliEveEventManager not set!\n");
+  if (AliEveEventManager::GetMaster() == 0) {
+    printf("AliEveEventManager is not initialized!\n");
     return;
   }
-  gEvent->PrevEvent();
+  AliEveEventManager::GetMaster()->PrevEvent();
 }