diff options
author | uniboi <64006268+uniboi@users.noreply.github.com> | 2023-04-18 22:49:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 18:49:46 -0400 |
commit | ca45fcc4c541e90fbcd5dc9a3dc0abf06af54dbc (patch) | |
tree | 41dc904ae816afa24a34dfcfafd293cbdd10e626 | |
parent | c173e8fad8b0c4f5711ad806c6de70349274941c (diff) | |
download | NorthstarLauncher-ca45fcc4c541e90fbcd5dc9a3dc0abf06af54dbc.tar.gz NorthstarLauncher-ca45fcc4c541e90fbcd5dc9a3dc0abf06af54dbc.zip |
Fix getvector returning garbage data (#448)
* fix vector garbage data
* change typedef to use IDA's types
-rw-r--r-- | NorthstarDLL/squirrel/squirrel.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/NorthstarDLL/squirrel/squirrel.h b/NorthstarDLL/squirrel/squirrel.h index 4a28409f..9bf3a794 100644 --- a/NorthstarDLL/squirrel/squirrel.h +++ b/NorthstarDLL/squirrel/squirrel.h @@ -223,8 +223,7 @@ class SquirrelManagerBase inline Vector3 getvector(HSquirrelVM* sqvm, const SQInteger stackpos) { - float* pRet = __sq_getvector(sqvm, stackpos); - return *(Vector3*)&pRet; + return *(Vector3*)__sq_getvector(sqvm, stackpos); } inline int sq_getfunction(HSquirrelVM* sqvm, const char* name, SQObject* returnObj, const char* signature) |