crash in script system fixed

This commit is contained in:
Mikulas Florek 2015-03-22 00:40:03 +01:00
parent e28f4dbd1b
commit 1fbb72e527

View file

@ -196,6 +196,7 @@ namespace Lumix
{
g_log_error.log("script") << "Could not load " << library_path;
Library::destroy(m_library);
m_library = NULL;
return;
}
m_update_function = (UpdateFunction)m_library->resolve("update");
@ -226,8 +227,8 @@ namespace Lumix
if (m_library)
{
Library::destroy(m_library);
m_library = NULL;
}
m_library = NULL;
}