aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstate.cpp b/src/libstate.cpp
index e2a81d598..62ecd5cdf 100644
--- a/src/libstate.cpp
+++ b/src/libstate.cpp
@@ -31,7 +31,7 @@ Library_State* global_lib_state = 0;
Library_State& global_state()
{
if(!global_lib_state)
- throw Invalid_State("Library was not initialized correctly");
+ LibraryInitializer::initialize();
return (*global_lib_state);
}