summaryrefslogtreecommitdiffstats
path: root/src/serialisation
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialisation')
-rw-r--r--src/serialisation/serialisation.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/serialisation/serialisation.cpp b/src/serialisation/serialisation.cpp
index 91c435e3..e6780ed6 100644
--- a/src/serialisation/serialisation.cpp
+++ b/src/serialisation/serialisation.cpp
@@ -22,7 +22,7 @@
using namespace Ingen;
-struct IngenModule : public Shared::Module {
+struct IngenSerialisationModule : public Shared::Module {
void load(Shared::World* world) {
world->set_parser(SharedPtr<Serialisation::Parser>(
new Serialisation::Parser()));
@@ -31,16 +31,11 @@ struct IngenModule : public Shared::Module {
}
};
-static IngenModule* module = NULL;
-
extern "C" {
Shared::Module*
ingen_module_load() {
- if (!module)
- module = new IngenModule();
-
- return module;
+ return new IngenSerialisationModule();
}
} // extern "C"