Skip to content

Commit

Permalink
fix: add missing check that caused crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
SaneEngineer committed May 28, 2024
1 parent 0788048 commit 55ac3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 55ac3f4

Please sign in to comment.