From 5317e6786f0986c133f1d536e4ca66651537b3e6 Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Tue, 27 Aug 2024 23:58:17 +0200 Subject: [PATCH] Added nil handling for scenario name to Clean Up Helper --- src/accessories/CleanUpHelper.ttslua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/accessories/CleanUpHelper.ttslua b/src/accessories/CleanUpHelper.ttslua index 9be7d435..ff09033b 100644 --- a/src/accessories/CleanUpHelper.ttslua +++ b/src/accessories/CleanUpHelper.ttslua @@ -422,7 +422,7 @@ end -- get value with respect to override value function getOptionValue() -- don't clean up playermats if playing a prelude from the list - if preludeList[scenarioName] then + if scenarioName and preludeList[scenarioName] then return false else return options["tidyPlayermats"]