aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobTheBob9 <for.oliver.kirkham@gmail.com>2022-10-21 00:22:59 +0100
committerBobTheBob9 <for.oliver.kirkham@gmail.com>2022-10-21 00:22:59 +0100
commit64450087ea3b737f74798cd9c0ce8b0abca37918 (patch)
tree182b3fe6d79ecc399f9a286e9907780880f07d94
parent0c729c609cd052f4e720ce885c1d5322b63c9edd (diff)
downloadNorthstarLauncher-64450087ea3b737f74798cd9c0ce8b0abca37918.tar.gz
NorthstarLauncher-64450087ea3b737f74798cd9c0ce8b0abca37918.zip
fix up formattingv1.10.0-rc2
-rw-r--r--NorthstarDLL/squirrel.cpp1
-rw-r--r--NorthstarDLL/squirrel.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/NorthstarDLL/squirrel.cpp b/NorthstarDLL/squirrel.cpp
index d130aed7..be0dceeb 100644
--- a/NorthstarDLL/squirrel.cpp
+++ b/NorthstarDLL/squirrel.cpp
@@ -512,7 +512,6 @@ ON_DLL_LOAD_RELIESON("client.dll", ClientSquirrel, ConCommand, (CModule module))
g_pSquirrel<ScriptContext::CLIENT>->__sq_GetEntityConstant_CBaseEntity;
g_pSquirrel<ScriptContext::UI>->__sq_getentityfrominstance = g_pSquirrel<ScriptContext::CLIENT>->__sq_getentityfrominstance;
-
MAKEHOOK(
module.Offset(0x108E0),
&RegisterSquirrelFunctionHook<ScriptContext::CLIENT>,
diff --git a/NorthstarDLL/squirrel.h b/NorthstarDLL/squirrel.h
index bc738428..a3a214de 100644
--- a/NorthstarDLL/squirrel.h
+++ b/NorthstarDLL/squirrel.h
@@ -335,7 +335,7 @@ template <ScriptContext context> class SquirrelManager
__sq_getobject(sqvm, iStackPos, &obj);
// there are entity constants for other types, but seemingly CBaseEntity's is the only one needed
- return (T*) __sq_getentityfrominstance(m_pSQVM, &obj, __sq_GetEntityConstant_CBaseEntity());
+ return (T*)__sq_getentityfrominstance(m_pSQVM, &obj, __sq_GetEntityConstant_CBaseEntity());
}
#pragma endregion
};