mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 23:37:58 +03:00
Fixing IsValid outputting the opposite of being valid
This commit is contained in:
parent
e9cbcd173d
commit
1d4dfe7d4c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user