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