1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 03:39:42 +00:00

Fix the compilation

This commit is contained in:
jvoisin 2021-04-18 13:26:26 +02:00
parent c0f7e0d585
commit 032ba1e9a0

View file

@ -1,6 +1,7 @@
#include "variantimp.hpp"
#include <stdexcept>
#include <cmath>
#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<short> (value);