From 03632df565fecd51374753049f5c5b56140bbcc1 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Fri, 12 Jun 2020 11:12:41 -0500 Subject: [PATCH] Fixed matrix3x4_t constructor not working before instantiated by other means --- sp/src/game/shared/mapbase/vscript_funcs_math.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sp/src/game/shared/mapbase/vscript_funcs_math.cpp b/sp/src/game/shared/mapbase/vscript_funcs_math.cpp index bccf0e8d..fc306be3 100644 --- a/sp/src/game/shared/mapbase/vscript_funcs_math.cpp +++ b/sp/src/game/shared/mapbase/vscript_funcs_math.cpp @@ -273,6 +273,8 @@ void RegisterMathScriptFunctions() // // matrix3x4_t // + g_pScriptVM->RegisterClass( GetScriptDescForClass( CScriptMatrix3x4 ) ); + ScriptRegisterFunctionNamed( g_pScriptVM, ScriptFreeMatrixInstance, "FreeMatrixInstance", "Frees an allocated matrix instance." ); ScriptRegisterFunctionNamed( g_pScriptVM, ScriptConcatTransforms, "ConcatTransforms", "Concatenates two transformation matrices into another matrix." );