mirror of
https://github.com/celisej567/BCWSsrc.git
synced 2026-01-03 18:11:08 +03:00
Fixing IsValid outputting the opposite of being valid
This commit is contained in:
@@ -1071,7 +1071,7 @@ SQInteger IsValid_stub(HSQUIRRELVM vm)
|
||||
{
|
||||
ClassInstanceData* classInstanceData = nullptr;
|
||||
sq_getinstanceup(vm, 1, (SQUserPointer*)&classInstanceData, 0);
|
||||
sq_pushbool(vm, classInstanceData == nullptr);
|
||||
sq_pushbool(vm, classInstanceData != nullptr);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -3034,4 +3034,4 @@ bool SquirrelVM::RaiseException(const char* pszExceptionText)
|
||||
IScriptVM* makeSquirrelVM()
|
||||
{
|
||||
return new SquirrelVM;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user