1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Removed the root table reference from the core class which was causing a 998 error when the plugin was loaded.

This commit is contained in:
Sandu Liviu Catalin 2015-11-08 10:11:49 +02:00
parent 920d70185f
commit 673119db3d
2 changed files with 0 additions and 9 deletions

View File

@ -39,7 +39,6 @@ Core::Core()
: m_State(SQMOD_SUCCESS)
, m_Options()
, m_VM(nullptr)
, m_RootTable()
, m_Scripts()
, m_ErrorMsg()
, m_PlayerTrack()
@ -384,7 +383,6 @@ bool Core::CreateVM()
{
DefaultVM::Set(m_VM);
ErrorHandling::Enable(true);
m_RootTable = RootTable(m_VM);
m_Scripts.clear();
}
@ -428,8 +426,6 @@ void Core::DestroyVM()
OnVMClose();
// Release the references to the script objects
m_Scripts.clear();
// Release the reference to the root table
m_RootTable.Release();
// Assertions during close may cause double delete
HSQUIRRELVM sq_vm = m_VM;
// Explicitly set the virtual machine to null

View File

@ -102,11 +102,6 @@ private:
*/
HSQUIRRELVM m_VM;
/* --------------------------------------------------------------------------------------------
* Reference to the root table to be used whenever interaction with the root table is required.
*/
RootTable m_RootTable;
/* --------------------------------------------------------------------------------------------
* All the scripts specified in the configuration file in their compiled form.
*/