Fix possible error on following lines

This commit is contained in:
gbasood
2019-08-16 00:47:05 -07:00
parent bc2c1a5b63
commit 66b37bdd50

View File

@@ -248,14 +248,14 @@ GENERAL PROCS
var/parea = "ERROR"
// area can be null in the case of nullspacing
var/area/A = get_area(B)
if(A)
if(!isnull(A))
parea = format_text(A.name)
if(istype(M.loc,/obj/item/weapon/storage/belt/silicon))
continue
var/turf/pos = get_turf(B)
if((pos.z in all_tracked_z_levels) && istype(M) && M.brainmob == B && !isrobot(M.loc))
if(!isnull(pos) && (pos.z in all_tracked_z_levels) && istype(M) && M.brainmob == B && !isrobot(M.loc))
var/see_x = pos.x - WORLD_X_OFFSET[pos.z]
var/see_y = pos.y - WORLD_Y_OFFSET[pos.z]
entries[pos.z][++entries[pos.z].len] = list(see_x, see_y, B, "[B]", "MMI", null, null, parea, 60, pos)