diff --git a/components/nif/controlled.cpp b/components/nif/controlled.cpp index 51ccf8541..9b7c9319b 100644 --- a/components/nif/controlled.cpp +++ b/components/nif/controlled.cpp @@ -9,7 +9,7 @@ namespace Nif { Named::read(nif); - external = !!nif->getChar(); + external = nif->getChar() != 0; if(external) filename = nif->getString(); else diff --git a/components/nif/nifstream.cpp b/components/nif/nifstream.cpp index 6e00cbd13..4ecb0e373 100644 --- a/components/nif/nifstream.cpp +++ b/components/nif/nifstream.cpp @@ -28,7 +28,7 @@ namespace Nif ///Currently specific for 4.0.0.2 and earlier bool NIFStream::getBoolean() { - return !!getInt(); + return getInt() != 0; } ///Read in a string, either from the string table using the index (currently absent) or from the stream using the specified length diff --git a/components/nif/node.hpp b/components/nif/node.hpp index 50221784c..71a0a93ca 100644 --- a/components/nif/node.hpp +++ b/components/nif/node.hpp @@ -44,7 +44,7 @@ public: velocity = nif->getVector3(); props.read(nif); - hasBounds = !!nif->getInt(); + hasBounds = nif->getBoolean(); if(hasBounds) { nif->getInt(); // always 1