mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Strip server vm reference from client dll
This commit is contained in:
parent
83fc611a48
commit
a6b92f8713
@ -63,7 +63,7 @@ struct SQFuncRegistration
|
||||
|
||||
SQFuncRegistration()
|
||||
{
|
||||
memset(this, 0, sizeof(SQFuncRegistration));
|
||||
memset(this, '\0', sizeof(SQFuncRegistration));
|
||||
this->padding2 = 6;
|
||||
}
|
||||
};
|
||||
|
@ -422,8 +422,10 @@ HSQUIRRELVM SQVM_GetVM(SQCONTEXT context)
|
||||
{
|
||||
switch (context)
|
||||
{
|
||||
#ifndef CLIENT_DLL
|
||||
case SQCONTEXT::SERVER:
|
||||
return g_pServerVM.GetValue<HSQUIRRELVM>();
|
||||
#endif // !CLIENT_DLL
|
||||
#ifndef DEDICATED
|
||||
case SQCONTEXT::CLIENT:
|
||||
return g_pClientVM.GetValue<HSQUIRRELVM>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user