Strip server vm reference from client dll

This commit is contained in:
Kawe Mazidjatari 2022-03-31 17:23:14 +02:00
parent 83fc611a48
commit a6b92f8713
2 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,7 @@ struct SQFuncRegistration
SQFuncRegistration()
{
memset(this, 0, sizeof(SQFuncRegistration));
memset(this, '\0', sizeof(SQFuncRegistration));
this->padding2 = 6;
}
};

View File

@ -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>();