From 032ba1e9a09473078a010ac948a6d7f43deccfc0 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 18 Apr 2021 13:26:26 +0200 Subject: [PATCH] Fix the compilation --- components/esm/variantimp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esm/variantimp.cpp b/components/esm/variantimp.cpp index 129b6c6d0..b9cd9a853 100644 --- a/components/esm/variantimp.cpp +++ b/components/esm/variantimp.cpp @@ -1,6 +1,7 @@ #include "variantimp.hpp" #include +#include #include "esmreader.hpp" #include "esmwriter.hpp" @@ -52,7 +53,7 @@ void ESM::readESMVariantValue(ESMReader& esm, Variant::Format format, VarType ty esm.getHNT (value, "FLTV"); if (type==VT_Short) - if (isnan(value)) + if (std::isnan(value)) out = 0; else out = static_cast (value);