aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/squirrel/squirrel.h
diff options
context:
space:
mode:
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)