From b7c69d109f75b68fd765edd57fc76c501a039c98 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Wed, 6 Sep 2023 20:45:43 +0300 Subject: [PATCH] Use Fallout 3 stream version constant in NiParticlesData --- components/nif/data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/nif/data.cpp b/components/nif/data.cpp index c62fe1a4f0..fddb2057e9 100644 --- a/components/nif/data.cpp +++ b/components/nif/data.cpp @@ -175,12 +175,12 @@ namespace Nif { nif->read(mHasTextureIndices); uint32_t numSubtextureOffsets; - if (nif->getBethVersion() <= 34) + if (nif->getBethVersion() <= NIFFile::BethVersion::BETHVER_FO3) numSubtextureOffsets = nif->get(); else nif->read(numSubtextureOffsets); nif->readVector(mSubtextureOffsets, numSubtextureOffsets); - if (nif->getBethVersion() > 34) + if (nif->getBethVersion() > NIFFile::BethVersion::BETHVER_FO3) { nif->read(mAspectRatio); nif->read(mAspectFlags);