summaryrefslogtreecommitdiffstats
path: root/src/engine/ingen_http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/ingen_http.cpp')
-rw-r--r--src/engine/ingen_http.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/engine/ingen_http.cpp b/src/engine/ingen_http.cpp
index 9e41ff9c..c758e10b 100644
--- a/src/engine/ingen_http.cpp
+++ b/src/engine/ingen_http.cpp
@@ -26,10 +26,12 @@ using namespace Ingen;
struct IngenHTTPModule : public Ingen::Shared::Module {
void load(Ingen::Shared::World* world) {
- SharedPtr<HTTPEngineReceiver> interface(
- new Ingen::HTTPEngineReceiver(*world->local_engine().get(),
- world->conf()->option("engine-port").get_int32()));
- world->local_engine()->add_event_source(interface);
+ Engine::Engine* engine = (Engine::Engine*)world->local_engine().get();
+ SharedPtr<Engine::HTTPEngineReceiver> interface(
+ new Engine::HTTPEngineReceiver(
+ *engine,
+ world->conf()->option("engine-port").get_int32()));
+ engine->add_event_source(interface);
}
};