mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 21:49:55 +00:00
Fix the compilation
This commit is contained in:
parent
c0f7e0d585
commit
032ba1e9a0
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
#include "variantimp.hpp"
|
#include "variantimp.hpp"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#include <cmath>
|
||||||
|
|
||||||
#include "esmreader.hpp"
|
#include "esmreader.hpp"
|
||||||
#include "esmwriter.hpp"
|
#include "esmwriter.hpp"
|
||||||
|
@ -52,7 +53,7 @@ void ESM::readESMVariantValue(ESMReader& esm, Variant::Format format, VarType ty
|
||||||
esm.getHNT (value, "FLTV");
|
esm.getHNT (value, "FLTV");
|
||||||
|
|
||||||
if (type==VT_Short)
|
if (type==VT_Short)
|
||||||
if (isnan(value))
|
if (std::isnan(value))
|
||||||
out = 0;
|
out = 0;
|
||||||
else
|
else
|
||||||
out = static_cast<short> (value);
|
out = static_cast<short> (value);
|
||||||
|
|
Loading…
Reference in a new issue