crash in script system fixed
This commit is contained in:
parent
e28f4dbd1b
commit
1fbb72e527
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue