Runtime fix: usr = 0???

runtime error: Cannot read 0.item_use_icon
proc name: remove gun icons (/client/proc/remove_gun_icons)
  source file: targeting.dm,273
  usr: 0
  src: Vivalas (/client)
  call stack:
Vivalas (/client): remove gun icons()
the taser gun (/obj/item/weapon/gun/energy/taser): dropped(Jonathon Sommer (/mob/living/carbon/human))
Jonathon Sommer (/mob/living/carbon/human): drop r hand(null)
Jonathon Sommer (/mob/living/carbon/human): update canmove()
Jonathon Sommer (/mob/living/carbon/human): Weaken(5)
Jonathon Sommer (/mob/living/carbon/human): Weaken(5)
Jonathon Sommer (/mob/living/carbon/human): apply effect(5, "weaken", 0)
Jonathon Sommer (/mob/living/carbon/human): apply effects(0, 5, 0, 0, 0, 0, 0, 0, 0)
This commit is contained in:
Ccomp5950
2014-02-24 01:35:04 -06:00
parent d5951781fd
commit 3d88998123

View File

@@ -269,7 +269,7 @@ client/proc/add_gun_icons()
screen += usr.gun_run_icon screen += usr.gun_run_icon
client/proc/remove_gun_icons() client/proc/remove_gun_icons()
if(isnull(usr)) return 1 // Runtime prevention on N00k agents spawning with SMG if(!usr) return 1 // Runtime prevention on N00k agents spawning with SMG
screen -= usr.item_use_icon screen -= usr.item_use_icon
screen -= usr.gun_move_icon screen -= usr.gun_move_icon
if (target_can_move) if (target_can_move)