mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user