diff options
author | uniboi <64006268+uniboi@users.noreply.github.com> | 2023-04-18 22:49:46 +0000 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-04-19 01:14:18 +0200 |
commit | b536e88fdba575e96bc7e69964d7e96b73fa941b (patch) | |
tree | 2c770edd797f8d2f98749246b99c45287b5a545d /NorthstarDLL/squirrel | |
parent | 9ca4d7dfc8b05dd68f7474851770755194d401fb (diff) | |
download | NorthstarLauncher-b536e88fdba575e96bc7e69964d7e96b73fa941b.tar.gz NorthstarLauncher-b536e88fdba575e96bc7e69964d7e96b73fa941b.zip |
Fix getvector returning garbage data (#448)v1.12.7-rc1
* fix vector garbage data
* change typedef to use IDA's types
Diffstat (limited to 'NorthstarDLL/squirrel')
-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 5708c836..aa728fa5 100644 --- a/NorthstarDLL/squirrel/squirrel.h +++ b/NorthstarDLL/squirrel/squirrel.h @@ -216,8 +216,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) |