From 8998b8c808a8ac234f32a2928108ac38874add69 Mon Sep 17 00:00:00 2001 From: dexy Date: Mon, 7 Feb 2022 00:28:14 +1100 Subject: [PATCH] Bug fix for reading/writing MrfNodeClip based on flags value --- CodeWalker.Core/GameFiles/FileTypes/MrfFile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeWalker.Core/GameFiles/FileTypes/MrfFile.cs b/CodeWalker.Core/GameFiles/FileTypes/MrfFile.cs index 7fe55f2..967c1cc 100644 --- a/CodeWalker.Core/GameFiles/FileTypes/MrfFile.cs +++ b/CodeWalker.Core/GameFiles/FileTypes/MrfFile.cs @@ -1662,7 +1662,7 @@ namespace CodeWalker.GameFiles if (((Flags >> 6) & 3) != 0) Unk7 = r.ReadUInt32(); - if (((Flags >> 6) & 3) != 0) + if (((Flags >> 8) & 3) != 0) Unk8 = r.ReadUInt32(); } @@ -1696,7 +1696,7 @@ namespace CodeWalker.GameFiles if (((Flags >> 6) & 3) != 0) w.Write(Unk7); - if (((Flags >> 6) & 3) != 0) + if (((Flags >> 8) & 3) != 0) w.Write(Unk8); }