Disables events with no players... finally (#21596)

Finally tracked down the bug causing events to fire while no players
were in-game; a check in GetWeight() was running a for loop for
'var/mob/living,' not 'var/mob/living/living' as it ought to have been,
causing it to detect players observing and at the main menu as active
participants.
This commit is contained in:
Batrachophreno
2025-11-17 19:08:18 +00:00
committed by GitHub
parent 351602c56d
commit 5e673ca043
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -60,7 +60,7 @@
return 0
var/n = 0
for (var/mob/living in GLOB.player_list)
for(var/mob/living/living in GLOB.player_list)
n++
if(n <= pop_requirement)
return 0