mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
Fixed some possible runtimes with pollCandidates() (#19919)
* Fixed some possible runtimes with pollCandidates() * Fixed bug in pollCandidatesForMobs()
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
bodies += M
|
||||
|
||||
var/question = "Would you like to be [group_name]?"
|
||||
var/list/candidates = pollCandidates(question, "pAI", null, FALSE, 100)
|
||||
var/list/candidates = pollCandidatesForMobs(question, "pAI", null, FALSE, 100, bodies)
|
||||
while(candidates.len && bodies.len)
|
||||
var/mob/dead/observer/ghost = pick_n_take(candidates)
|
||||
var/mob/living/body = pick_n_take(bodies)
|
||||
|
||||
Reference in New Issue
Block a user