From 974e67ce468435dd8aaf3fa9b0bfeb9d01e03ad4 Mon Sep 17 00:00:00 2001 From: Carmine Date: Tue, 27 Feb 2018 19:18:20 +0100 Subject: [PATCH] Ymap: Added bit 10 (of contentFlags) assertion for GrassInstanceBatches --- CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs b/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs index 7eb1c56..67c7720 100644 --- a/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs +++ b/CodeWalker.Core/GameFiles/FileTypes/YmapFile.cs @@ -1050,6 +1050,10 @@ namespace CodeWalker.GameFiles { contentFlags = SetBit(contentFlags, 6); //64 } + if ((GrassInstanceBatches != null) && (GrassInstanceBatches.Length > 0)) + { + contentFlags = SetBit(contentFlags, 10); //64 + } bool change = false;