aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/squirrel/squirrel.h
diff options
context:
space:
mode:
authoruniboi <64006268+uniboi@users.noreply.github.com>2023-04-18 22:49:46 +0000
committerGitHub <noreply@github.com>2023-04-18 18:49:46 -0400
commitca45fcc4c541e90fbcd5dc9a3dc0abf06af54dbc (patch)
tree41dc904ae816afa24a34dfcfafd293cbdd10e626 /NorthstarDLL/squirrel/squirrel.h
parentc173e8fad8b0c4f5711ad806c6de70349274941c (diff)
downloadNorthstarLauncher-ca45fcc4c541e90fbcd5dc9a3dc0abf06af54dbc.tar.gz
NorthstarLauncher-ca45fcc4c541e90fbcd5dc9a3dc0abf06af54dbc.zip
Fix getvector returning garbage data (#448)
* fix vector garbage data * change typedef to use IDA's types
Diffstat (limited to 'NorthstarDLL/squirrel/squirrel.h')
-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 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)