From 55ac3f479b25b8c696104d1f2edee47e45be7390 Mon Sep 17 00:00:00 2001 From: Anthony Titus Date: Tue, 28 May 2024 03:39:03 -0400 Subject: [PATCH] fix: add missing check that caused crashing --- src/Events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Events.cpp b/src/Events.cpp index 1bc29b9..518e2de 100644 --- a/src/Events.cpp +++ b/src/Events.cpp @@ -26,7 +26,7 @@ RE::BSEventNotifyControl cellLoadEventHandler::ProcessEvent(const RE::TESCellFul { if (a_event) { if(a_event->cell->IsInteriorCell()) { - if (GrassControl::Config::OnlyLoadFromCache) { + if (GrassControl::Config::OnlyLoadFromCache && GrassControl::Config::ExtendGrassDistance) { GrassControl::DistantGrass::LO2Map->UnloadAll(); } }