Fix runtimes using Tweak Component Ratings on non-machines

This commit is contained in:
Tad Hardesty
2017-12-05 17:19:23 -08:00
parent da26ed6336
commit 8edd8e9a9a
@@ -1,6 +1,9 @@
/proc/machine_upgrade(obj/machinery/M in world)
set name = "Tweak Component Ratings"
set category = "Debug"
if (!istype(M))
return
var/new_rating = input("Enter new rating:","Num") as num
if(new_rating && M.component_parts)
for(var/obj/item/stock_parts/P in M.component_parts)