[MIRROR] Fixes runtime from voting action Remove() [MDB IGNORE] (#17108)

* Fixes runtime from voting action `Remove()` (#70702)

Fixes runtime from voting actions due to calling remove on ownerless actions

* Fixes runtime from voting action `Remove()`

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-10-22 23:11:53 +02:00
committed by GitHub
parent a92a9c51c5
commit 66063a0b44

View File

@@ -49,12 +49,7 @@ SUBSYSTEM_DEF(vote)
current_vote?.reset() current_vote?.reset()
current_vote = null current_vote = null
for(var/datum/action/vote/voting_action as anything in generated_actions) QDEL_LIST(generated_actions)
if(QDELETED(voting_action))
continue
voting_action.Remove(voting_action.owner)
generated_actions.Cut()
SStgui.update_uis(src) SStgui.update_uis(src)