(fix/states) prevent nil error when cleaning up states
This commit is contained in:
parent
709671d706
commit
253de34f0f
1 changed files with 1 additions and 1 deletions
|
|
@ -801,7 +801,7 @@ local function RunTriggerFunc(allStates, data, id, triggernum, event, arg1, arg2
|
|||
end
|
||||
end
|
||||
end
|
||||
if not updateTriggerState and not allStates[cloneIdForUnitTrigger].show then
|
||||
if not updateTriggerState and not (allStates[cloneIdForUnitTrigger] and allStates[cloneIdForUnitTrigger].show) then
|
||||
-- We added this state automatically, but the trigger didn't end up using it,
|
||||
-- so remove it again
|
||||
allStates[cloneIdForUnitTrigger] = nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue