mirror of
				https://github.com/VCMP-SqMod/SqMod.git
				synced 2025-11-04 00:07:19 +01:00 
			
		
		
		
	Prevent common null objects from using dead virtual machines after reloads.
This commit is contained in:
		@@ -69,6 +69,11 @@ void OnSquirrelLoad()
 | 
			
		||||
    }
 | 
			
		||||
    // Set this as the default database
 | 
			
		||||
    DefaultVM::Set(_SqVM);
 | 
			
		||||
    // Prevent common null objects from using dead virtual machines
 | 
			
		||||
    NullArray() = Array();
 | 
			
		||||
    NullTable() = Table();
 | 
			
		||||
    NullObject() = Object();
 | 
			
		||||
    NullFunction() = Function();
 | 
			
		||||
    // Register the module API
 | 
			
		||||
    RegisterAPI(_SqVM);
 | 
			
		||||
    // Notify about the current status
 | 
			
		||||
 
 | 
			
		||||
@@ -63,6 +63,11 @@ void OnSquirrelLoad()
 | 
			
		||||
    }
 | 
			
		||||
    // Set this as the default database
 | 
			
		||||
    DefaultVM::Set(_SqVM);
 | 
			
		||||
    // Prevent common null objects from using dead virtual machines
 | 
			
		||||
    NullArray() = Array();
 | 
			
		||||
    NullTable() = Table();
 | 
			
		||||
    NullObject() = Object();
 | 
			
		||||
    NullFunction() = Function();
 | 
			
		||||
    // Register the module API
 | 
			
		||||
    RegisterAPI(_SqVM);
 | 
			
		||||
    // Notify about the current status
 | 
			
		||||
 
 | 
			
		||||
@@ -65,6 +65,11 @@ void OnSquirrelLoad()
 | 
			
		||||
    }
 | 
			
		||||
    // Set this as the default database
 | 
			
		||||
    DefaultVM::Set(_SqVM);
 | 
			
		||||
    // Prevent common null objects from using dead virtual machines
 | 
			
		||||
    NullArray() = Array();
 | 
			
		||||
    NullTable() = Table();
 | 
			
		||||
    NullObject() = Object();
 | 
			
		||||
    NullFunction() = Function();
 | 
			
		||||
    // Register the module API
 | 
			
		||||
    RegisterAPI(_SqVM);
 | 
			
		||||
    // Notify about the current status
 | 
			
		||||
 
 | 
			
		||||
@@ -63,6 +63,11 @@ void OnSquirrelLoad()
 | 
			
		||||
    }
 | 
			
		||||
    // Set this as the default database
 | 
			
		||||
    DefaultVM::Set(_SqVM);
 | 
			
		||||
    // Prevent common null objects from using dead virtual machines
 | 
			
		||||
    NullArray() = Array();
 | 
			
		||||
    NullTable() = Table();
 | 
			
		||||
    NullObject() = Object();
 | 
			
		||||
    NullFunction() = Function();
 | 
			
		||||
    // Register the module API
 | 
			
		||||
    RegisterAPI(_SqVM);
 | 
			
		||||
    // Notify about the current status
 | 
			
		||||
 
 | 
			
		||||
@@ -63,6 +63,11 @@ void OnSquirrelLoad()
 | 
			
		||||
    }
 | 
			
		||||
    // Set this as the default database
 | 
			
		||||
    DefaultVM::Set(_SqVM);
 | 
			
		||||
    // Prevent common null objects from using dead virtual machines
 | 
			
		||||
    NullArray() = Array();
 | 
			
		||||
    NullTable() = Table();
 | 
			
		||||
    NullObject() = Object();
 | 
			
		||||
    NullFunction() = Function();
 | 
			
		||||
    // Register the module API
 | 
			
		||||
    RegisterAPI(_SqVM);
 | 
			
		||||
    // Notify about the current status
 | 
			
		||||
 
 | 
			
		||||
@@ -63,6 +63,11 @@ void OnSquirrelLoad()
 | 
			
		||||
    }
 | 
			
		||||
    // Set this as the default database
 | 
			
		||||
    DefaultVM::Set(_SqVM);
 | 
			
		||||
    // Prevent common null objects from using dead virtual machines
 | 
			
		||||
    NullArray() = Array();
 | 
			
		||||
    NullTable() = Table();
 | 
			
		||||
    NullObject() = Object();
 | 
			
		||||
    NullFunction() = Function();
 | 
			
		||||
    // Register the module API
 | 
			
		||||
    RegisterAPI(_SqVM);
 | 
			
		||||
    // Notify about the current status
 | 
			
		||||
 
 | 
			
		||||
@@ -63,6 +63,11 @@ void OnSquirrelLoad()
 | 
			
		||||
    }
 | 
			
		||||
    // Set this as the default database
 | 
			
		||||
    DefaultVM::Set(_SqVM);
 | 
			
		||||
    // Prevent common null objects from using dead virtual machines
 | 
			
		||||
    NullArray() = Array();
 | 
			
		||||
    NullTable() = Table();
 | 
			
		||||
    NullObject() = Object();
 | 
			
		||||
    NullFunction() = Function();
 | 
			
		||||
    // Register the module API
 | 
			
		||||
    RegisterAPI(_SqVM);
 | 
			
		||||
    // Notify about the current status
 | 
			
		||||
 
 | 
			
		||||
@@ -68,6 +68,11 @@ void OnSquirrelLoad()
 | 
			
		||||
    }
 | 
			
		||||
    // Set this as the default database
 | 
			
		||||
    DefaultVM::Set(_SqVM);
 | 
			
		||||
    // Prevent common null objects from using dead virtual machines
 | 
			
		||||
    NullArray() = Array();
 | 
			
		||||
    NullTable() = Table();
 | 
			
		||||
    NullObject() = Object();
 | 
			
		||||
    NullFunction() = Function();
 | 
			
		||||
    // Register the module API
 | 
			
		||||
    RegisterAPI(_SqVM);
 | 
			
		||||
    // Notify about the current status
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user