Add a check for lack of datacore

This commit is contained in:
lbnesquik
2018-10-29 06:19:33 +01:00
parent bc071eea40
commit b0d224c121
@@ -174,6 +174,9 @@
// this function displays the stations manifest in a separate window
/mob/living/silicon/proc/show_station_manifest()
var/dat = "<div align='center'>"
if(!data_core)
to_chat(src,"<span class='notice'>There is no data to form a manifest with. Contact your Nanotrasen administrator.</span>")
return
dat += data_core.get_manifest(1) //The 1 makes it monochrome.
var/datum/browser/popup = new(src, "Crew Manifest", "Crew Manifest", 370, 420, src)