mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
Should fix loading from jobs.txt
The jobs controller's list of occupations was reset during roundstart which completely undid that whole load from file thing. It also would have undone any admin edits done while sitting in the lobby. Also fixed a couple instances where people thought that lists get copied with the = operator instead of passing by reference.
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
//this is here because this has no client/prefs/brain whatever.
|
||||
age = rand(AGE_MIN,AGE_MAX)
|
||||
//job handling
|
||||
var/list/jobs = SSjob.occupations
|
||||
var/list/jobs = SSjob.occupations.Copy()
|
||||
for(var/datum/job/J in jobs)
|
||||
if(J.title == "Cyborg" || J.title == "AI" || J.title == "Chaplain" || J.title == "Mime")
|
||||
jobs -= J
|
||||
|
||||
Reference in New Issue
Block a user