Merge pull request #5014 from PolarisSS13/Ater_Weather_report

Weather reports won't crash when planet controller dies
This commit is contained in:
Anewbe
2018-03-05 19:46:25 -06:00
committed by GitHub

View File

@@ -69,6 +69,7 @@
im_list_ui[++im_list_ui.len] = list("address" = I["address"], "to_address" = I["to_address"], "im" = I["im"]) im_list_ui[++im_list_ui.len] = list("address" = I["address"], "to_address" = I["to_address"], "im" = I["im"])
//Weather reports. //Weather reports.
if(planet_controller)
for(var/datum/planet/planet in planet_controller.planets) for(var/datum/planet/planet in planet_controller.planets)
if(planet.weather_holder && planet.weather_holder.current_weather) if(planet.weather_holder && planet.weather_holder.current_weather)
var/list/W = list( var/list/W = list(