Fix the runtime on server boot caused by uninitialized using_map

This commit is contained in:
Leshana
2017-04-09 16:11:12 -04:00
parent bbfaa41f2a
commit a23be7759b

View File

@@ -89,10 +89,11 @@
/datum/lore/organization/tsc/nanotrasen/New() /datum/lore/organization/tsc/nanotrasen/New()
..() ..()
// Get rid of the current map from the list, so ships flying in don't say they're coming to the current map. spawn(1) // BYOND shenanigans means using_map is not initialized yet. Wait a tick.
var/string_to_test = "[using_map.station_name] in [using_map.starsys_name]" // Get rid of the current map from the list, so ships flying in don't say they're coming to the current map.
if(string_to_test in destination_names) var/string_to_test = "[using_map.station_name] in [using_map.starsys_name]"
destination_names.Remove(string_to_test) if(string_to_test in destination_names)
destination_names.Remove(string_to_test)