nil handling

This commit is contained in:
Chr1Z93 2024-06-02 16:27:17 +02:00
parent 92326cee62
commit a92c65ff61

View File

@ -886,7 +886,7 @@ function maybeUpdateActiveInvestigator(card)
end
-- spawn additional token (maybe specific for investigator)
if extraToken ~= "None" then
if extraToken and extraToken ~= "None" then
-- set value to class if currently "nil"
extraToken = extraToken or activeInvestigatorClass