]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/event_mgr.cxx
Fix a problem where the compiler would mix up two function declarations because the...
[simgear.git] / simgear / structure / event_mgr.cxx
index 979420d71c7f4ee9b1c39bab06b167adbbf58b30..9ffb184be4d1576bac9b690e9a60ba1c6b3e10ec 100644 (file)
@@ -71,12 +71,12 @@ SGEvent::SGEvent( const char* name,
 }
 
 SGEvent::SGEvent( const char* name,
-                  const SGSubsystem* subsystem,
+                  SGSubsystem* subsystem,
                   interval_type repeat_value,
                   interval_type initial_value )
     : _name(name),
       _callback(NULL),
-      _subsystem((SGSubsystem*)&subsystem),
+      _subsystem(subsystem),
       _repeat_value(repeat_value),
       _initial_value(initial_value),
       _cum_time(0),