mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
[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:
@@ -49,12 +49,7 @@ SUBSYSTEM_DEF(vote)
|
||||
current_vote?.reset()
|
||||
current_vote = null
|
||||
|
||||
for(var/datum/action/vote/voting_action as anything in generated_actions)
|
||||
if(QDELETED(voting_action))
|
||||
continue
|
||||
voting_action.Remove(voting_action.owner)
|
||||
|
||||
generated_actions.Cut()
|
||||
QDEL_LIST(generated_actions)
|
||||
|
||||
SStgui.update_uis(src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user