From 76dc56bd2b34712481d336943f67e8de9bbf1cad Mon Sep 17 00:00:00 2001 From: PsiOmegaDelta Date: Thu, 14 Jul 2016 10:54:21 +0200 Subject: [PATCH] Robot upgrades now checks that the upgrade type is valid. As opposed to the instance itself. Fixes #13652. --- code/game/objects/items/robot/robot_upgrades.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/robot/robot_upgrades.dm b/code/game/objects/items/robot/robot_upgrades.dm index a13df854cb..330bde967f 100644 --- a/code/game/objects/items/robot/robot_upgrades.dm +++ b/code/game/objects/items/robot/robot_upgrades.dm @@ -104,7 +104,7 @@ /obj/item/borg/upgrade/tasercooler/action(var/mob/living/silicon/robot/R) if(..()) return 0 - if(!R.module || !(src in R.module.supported_upgrades)) + if(!R.module || !(type in R.module.supported_upgrades)) R << "Upgrade mounting error! No suitable hardpoint detected!" usr << "There's no mounting point for the module!" return 0 @@ -137,7 +137,7 @@ /obj/item/borg/upgrade/jetpack/action(var/mob/living/silicon/robot/R) if(..()) return 0 - if(!R.module || !(src in R.module.supported_upgrades)) + if(!R.module || !(type in R.module.supported_upgrades)) R << "Upgrade mounting error! No suitable hardpoint detected!" usr << "There's no mounting point for the module!" return 0