Skip to content

Commit

Permalink
Scripting/Math: Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed Dec 10, 2024
1 parent d45eabf commit 00ec975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CommonLib/Scripting/MathScriptingLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace tsom
sol::call_constructor, sol::constructors<Nz::Vector2<T>(), Nz::Vector2<T>(T), Nz::Vector2<T>(T, T)>(),
"GetLength", [](const Nz::Vector2<T>& vec)
{
return vec.GetLength<double>();
return vec.template GetLength<double>();
},
"GetNormal", [](const Nz::Vector2<T>& vec)
{
Expand Down Expand Up @@ -155,7 +155,7 @@ namespace tsom
sol::call_constructor, sol::constructors<Nz::Vector3<T>(), Nz::Vector3<T>(T), Nz::Vector3<T>(T, T, T)>(),
"GetLength", [](const Nz::Vector3<T>& vec)
{
return vec.GetLength<double>();
return vec.template GetLength<double>();
},
"GetNormal", [](const Nz::Vector3<T>& vec)
{
Expand Down

0 comments on commit 00ec975

Please sign in to comment.