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;