Fixes cartridges not linking with their host PDAs on creation

This commit is contained in:
CitadelStationBot
2017-07-06 09:06:29 -05:00
parent b1b4826c0c
commit cdb3158af5
+4 -3
View File
@@ -48,9 +48,10 @@
var/mob/living/simple_animal/bot/active_bot
var/list/botlist = list()
/obj/item/weapon/cartridge/Initialize(var/obj/item/device/pda/pda)
..()
if(pda)
/obj/item/weapon/cartridge/Initialize()
. = ..()
var/obj/item/device/pda/pda = loc
if(istype(pda))
host_pda = pda
/obj/item/weapon/cartridge/engineering