diff --git a/code/modules/mining/equipment/mineral_scanner.dm b/code/modules/mining/equipment/mineral_scanner.dm index 8f4969857d75..bbd0c9831e53 100644 --- a/code/modules/mining/equipment/mineral_scanner.dm +++ b/code/modules/mining/equipment/mineral_scanner.dm @@ -166,7 +166,7 @@ /obj/item/pinpointer/mineral/process() switch(scanmode) if(SCANMODE_SUBSURFACE) - if(active && target.loc == null) + if(active && target && target.loc == null) target = null toggle_on() . = ..() //returns pinpointer code if its scanning for deepcore spots