Fixes drone regeneration of materials issue.

This commit is contained in:
Zuhayr
2014-05-12 13:00:25 +09:30
parent e0063c271b
commit b6a3c8a761

View File

@@ -329,7 +329,7 @@
src.modules += S
S.amount = 0
if(istype(S) && S.amount < 15)
if(S && S.amount < 15)
S.amount++
var/obj/item/device/lightreplacer/LR = locate() in src.modules