aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/core/math
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDLL/core/math')
-rw-r--r--NorthstarDLL/core/math/vector.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/NorthstarDLL/core/math/vector.h b/NorthstarDLL/core/math/vector.h
index 95eae7ca..112fabdf 100644
--- a/NorthstarDLL/core/math/vector.h
+++ b/NorthstarDLL/core/math/vector.h
@@ -1,3 +1,5 @@
+#include <cmath>
+
#pragma once
union Vector3
@@ -21,7 +23,7 @@ union Vector3
void MakeValid()
{
for (auto& fl : raw)
- if (isnan(fl))
+ if (std::isnan(fl))
fl = 0;
}