Fixes a runtime with embedding a deleted weapon.

This commit is contained in:
Zuhayr
2014-12-30 16:10:37 +10:30
parent c73d3e9e16
commit 842fe11c59
@@ -282,7 +282,7 @@ emp_act
forcesay(hit_appends) //forcesay checks stat already
//Melee weapon embedded object code.
if (I.damtype == BRUTE && !I.is_robot_module())
if (I && I.damtype == BRUTE && !I.is_robot_module())
var/damage = I.force
if (armor)
damage /= armor+1