Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Capostrophic committed Sep 10, 2023
1 parent a7cc4e6 commit 4dd2f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/nif/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Nif
{
void NiBoundingVolume::read(NIFStream* nif)
{
type = nif->getUInt();
nif->read(type);
switch (type)
{
case BASE_BV:
Expand Down
4 changes: 2 additions & 2 deletions components/nif/node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Nif

struct NiBoundingVolume
{
enum Type
enum Type : uint32_t
{
BASE_BV = 0xFFFFFFFF,
SPHERE_BV = 0,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4dd2f34

Please sign in to comment.