Fixes shutting down doesn't insert alerts in CH (#7949)

This commit is contained in:
Matteo Biscosi 2023-10-25 11:41:49 +00:00
parent 2db9bd7572
commit b970d0859e
3 changed files with 5 additions and 3 deletions

View file

@ -462,7 +462,7 @@ function alerts_api.releaseEntityAlerts(entity_info, alerts)
alerts = interface.getEngagedAlerts(entity_info.alert_entity.entity_id, entity_info.entity_val)
end
for _, cur_alert in pairs(alerts) do
for _, cur_alert in ipairs(alerts) do
-- NOTE: do not pass alerts here as a parameters as deleting items while
-- does not work in lua