summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/World.cpp')
-rw-r--r--src/World.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 41e69826..b9d1ba1f 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -264,9 +264,12 @@ World::load_module(const char* name)
}
log().info("Loading %1% module\n", name);
std::unique_ptr<ingen::Library> lib = ingen_load_library(log(), name);
+
ingen::Module* (*module_load)() =
- lib ? (ingen::Module* (*)())lib->get_function("ingen_module_load")
- : nullptr;
+ lib ? reinterpret_cast<ingen::Module* (*)()>(
+ lib->get_function("ingen_module_load"))
+ : nullptr;
+
if (module_load) {
Module* module = module_load();
if (module) {