From 570c98f0e2a5f383edfcf17ecf5ff58833c63ce2 Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Sat, 7 Dec 2013 05:18:27 -0600 Subject: [PATCH] Runtime fix: N00k agents on spawn were causing a runtime here. --- code/modules/projectiles/targeting.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/modules/projectiles/targeting.dm b/code/modules/projectiles/targeting.dm index b8905e1ae2..06f25a7e18 100644 --- a/code/modules/projectiles/targeting.dm +++ b/code/modules/projectiles/targeting.dm @@ -269,6 +269,7 @@ client/proc/add_gun_icons() screen += usr.gun_run_icon client/proc/remove_gun_icons() + if(isnull(usr)) return 1 // Runtime prevention on N00k agents spawning with SMG screen -= usr.item_use_icon screen -= usr.gun_move_icon if (target_can_move)