mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Fix random job assignments occasionally assigning to roles that were already filled (#64734)
Missing continue in the random job assignment code meant an if statement was ineffective, code fell through and assigned roles to jobs that were already full.
This commit is contained in:
@@ -241,6 +241,7 @@ SUBSYSTEM_DEF(job)
|
||||
|
||||
if((job.current_positions >= job.spawn_positions) && job.spawn_positions != -1)
|
||||
JobDebug("GRJ job lacks spawn positions to be eligible, Player: [player], Job: [job]")
|
||||
continue
|
||||
|
||||
if(istype(job, GetJobType(overflow_role))) // We don't want to give him assistant, that's boring!
|
||||
JobDebug("GRJ skipping overflow role, Player: [player], Job: [job]")
|
||||
|
||||
Reference in New Issue
Block a user