Fixed a warning on closing invalid plugins.
This commit is contained in:
parent
40cb30b6a5
commit
61b968601a
@ -36,8 +36,11 @@ cPluginLua::cPluginLua(const AString & a_PluginDirectory) :
|
||||
cPluginLua::~cPluginLua()
|
||||
{
|
||||
cCSLock Lock(m_CriticalSection);
|
||||
if (m_LuaState.IsValid())
|
||||
{
|
||||
m_LuaState.Close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user