From 8bddf5bfe83b52165c589b2dd5e544831a55231d Mon Sep 17 00:00:00 2001 From: uniboi <64006268+uniboi@users.noreply.github.com> Date: Wed, 11 Jan 2023 19:29:11 +0000 Subject: push vectors to stack correctly (#395) push to stack correctly Co-authored-by: Maya Co-authored-by: Maya --- NorthstarDLL/squirrel/squirrel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NorthstarDLL/squirrel/squirrel.h b/NorthstarDLL/squirrel/squirrel.h index 82825b3c..ce758d7c 100644 --- a/NorthstarDLL/squirrel/squirrel.h +++ b/NorthstarDLL/squirrel/squirrel.h @@ -181,7 +181,7 @@ class SquirrelManagerBase inline void pushvector(HSquirrelVM* sqvm, const Vector3 pVal) { - __sq_pushvector(sqvm, *(float**)&pVal); + __sq_pushvector(sqvm, (float*)&pVal); } inline void pushobject(HSquirrelVM* sqvm, SQObject* obj) -- cgit v1.2.3