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:
Vincent
2015-10-24 19:46:44 -04:00
parent 4b0fdc08b4
commit 3e6f641ec3
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -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