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:
parent
920d70185f
commit
673119db3d
@ -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
|
||||
|
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user