fix wrong location (#8439)

This commit is contained in:
Kashargul
2024-06-01 17:42:00 +02:00
committed by GitHub
parent cfb5007cf0
commit cb5aa4445d

View File

@@ -967,15 +967,17 @@
/obj/screen/ammo/proc/add_hud(var/mob/living/user, var/obj/item/weapon/gun/G)
if(G.hud_enabled == FALSE)
return
if(!user?.client)
return
if(!G)
CRASH("/obj/screen/ammo/proc/add_hud() has been called from [src] without the required param of G")
//CHOMPAdd start
if(!G.hud_enabled)
return
//CHOMPAdd End
if(!G.has_ammo_counter())
return