Actually fixes medical item runtimes

They never checked whether the limb you're targeting actually exists,
which caused all sorts of runtimes all over the place
This commit is contained in:
Krausus
2015-05-14 08:28:41 -04:00
parent f45737c097
commit 1e63811d0f
+5 -1
View File
@@ -28,7 +28,11 @@
if(!M.can_inject(user, 1))
return 1
if(affecting && (affecting.status & ORGAN_ROBOT))
if(!affecting)
user << "<span class='danger'>That limb is missing!</span>"
return 1
if(affecting.status & ORGAN_ROBOT)
user << "<span class='danger'>This can't be used on a robotic limb.</span>"
return 1