From 4dd2f34e3088307ac45dd45f29a44f351a0e3e7d Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Sun, 10 Sep 2023 09:20:06 +0300 Subject: [PATCH] Fix Windows build --- components/nif/node.cpp | 2 +- components/nif/node.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/nif/node.cpp b/components/nif/node.cpp index 010a363436..d7b6c3945b 100644 --- a/components/nif/node.cpp +++ b/components/nif/node.cpp @@ -12,7 +12,7 @@ namespace Nif { void NiBoundingVolume::read(NIFStream* nif) { - type = nif->getUInt(); + nif->read(type); switch (type) { case BASE_BV: diff --git a/components/nif/node.hpp b/components/nif/node.hpp index 76651b05db..51781a5290 100644 --- a/components/nif/node.hpp +++ b/components/nif/node.hpp @@ -15,7 +15,7 @@ namespace Nif struct NiBoundingVolume { - enum Type + enum Type : uint32_t { BASE_BV = 0xFFFFFFFF, SPHERE_BV = 0, @@ -51,7 +51,7 @@ namespace Nif osg::Vec3f origin; }; - unsigned int type{ BASE_BV }; + uint32_t type{ BASE_BV }; osg::BoundingSpheref sphere; NiBoxBV box; NiCapsuleBV capsule;