mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Remove extraneous deref
Caused crash when calling sq_getstring/sq_getinteger. Forgot to remove this after derefing it from the VM pointer.
This commit is contained in:
parent
84f6f37721
commit
9aa665b374
@ -11,13 +11,13 @@
|
||||
//---------------------------------------------------------------------------------
|
||||
SQChar* sq_getstring(HSQUIRRELVM v, SQInteger i)
|
||||
{
|
||||
return *(char**)(*(std::int64_t*)(v->_stackbase) + 0x10 * static_cast<long long>(i) + 0x8) + 0x40;
|
||||
return *(char**)(v->_stackbase + 0x10 * static_cast<long long>(i) + 0x8) + 0x40;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
SQInteger sq_getinteger(HSQUIRRELVM v, SQInteger i)
|
||||
{
|
||||
return *(SQInteger*)(*(std::int64_t*)(v->_stackbase) + 0x10 * static_cast<long long>(i) + 0x8);
|
||||
return *(SQInteger*)(v->_stackbase + 0x10 * static_cast<long long>(i) + 0x8);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user