aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL
diff options
context:
space:
mode:
authoruniboi <64006268+uniboi@users.noreply.github.com>2023-04-18 22:49:46 +0000
committerGeckoEidechse <gecko.eidechse+git@pm.me>2023-04-19 01:14:18 +0200
commitb536e88fdba575e96bc7e69964d7e96b73fa941b (patch)
tree2c770edd797f8d2f98749246b99c45287b5a545d /NorthstarDLL
parent9ca4d7dfc8b05dd68f7474851770755194d401fb (diff)
downloadNorthstarLauncher-1.12.7-rc1.tar.gz
NorthstarLauncher-1.12.7-rc1.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')
-rw-r--r--NorthstarDLL/squirrel/squirrel.h3
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)