mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-31 09:57:14 +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_State(SQMOD_SUCCESS)
|
||||||
, m_Options()
|
, m_Options()
|
||||||
, m_VM(nullptr)
|
, m_VM(nullptr)
|
||||||
, m_RootTable()
|
|
||||||
, m_Scripts()
|
, m_Scripts()
|
||||||
, m_ErrorMsg()
|
, m_ErrorMsg()
|
||||||
, m_PlayerTrack()
|
, m_PlayerTrack()
|
||||||
@ -384,7 +383,6 @@ bool Core::CreateVM()
|
|||||||
{
|
{
|
||||||
DefaultVM::Set(m_VM);
|
DefaultVM::Set(m_VM);
|
||||||
ErrorHandling::Enable(true);
|
ErrorHandling::Enable(true);
|
||||||
m_RootTable = RootTable(m_VM);
|
|
||||||
m_Scripts.clear();
|
m_Scripts.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -428,8 +426,6 @@ void Core::DestroyVM()
|
|||||||
OnVMClose();
|
OnVMClose();
|
||||||
// Release the references to the script objects
|
// Release the references to the script objects
|
||||||
m_Scripts.clear();
|
m_Scripts.clear();
|
||||||
// Release the reference to the root table
|
|
||||||
m_RootTable.Release();
|
|
||||||
// Assertions during close may cause double delete
|
// Assertions during close may cause double delete
|
||||||
HSQUIRRELVM sq_vm = m_VM;
|
HSQUIRRELVM sq_vm = m_VM;
|
||||||
// Explicitly set the virtual machine to null
|
// Explicitly set the virtual machine to null
|
||||||
|
@ -102,11 +102,6 @@ private:
|
|||||||
*/
|
*/
|
||||||
HSQUIRRELVM m_VM;
|
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.
|
* All the scripts specified in the configuration file in their compiled form.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user