From: Mario Date: Sat, 17 Feb 2018 01:36:02 +0000 (+1000) Subject: Fix a crash caused by some skipped duplicated code X-Git-Tag: xonotic-v0.8.5~2308 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e091c15003df392efeea83c249f36402a569cade;p=xonotic%2Fxonotic-data.pk3dir.git Fix a crash caused by some skipped duplicated code --- diff --git a/qcsrc/common/weapons/weapon/hagar.qc b/qcsrc/common/weapons/weapon/hagar.qc index 0d8d94f59..82080dfd0 100644 --- a/qcsrc/common/weapons/weapon/hagar.qc +++ b/qcsrc/common/weapons/weapon/hagar.qc @@ -212,6 +212,7 @@ void W_Hagar_Attack2_Load_Release(entity actor, .entity weaponentity) missile.nextthink = time + WEP_CVAR_SEC(hagar, lifetime_min) + random() * WEP_CVAR_SEC(hagar, lifetime_rand); PROJECTILE_MAKETRIGGER(missile); missile.projectiledeathtype = WEP_HAGAR.m_id | HITTYPE_SECONDARY; + missile.weaponentity_fld = weaponentity; setorigin(missile, w_shotorg); setsize(missile, '0 0 0', '0 0 0'); set_movetype(missile, MOVETYPE_FLY);