]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a crash caused by some skipped duplicated code
authorMario <mario@smbclan.net>
Sat, 17 Feb 2018 01:36:02 +0000 (11:36 +1000)
committerMario <mario@smbclan.net>
Sat, 17 Feb 2018 01:36:02 +0000 (11:36 +1000)
qcsrc/common/weapons/weapon/hagar.qc

index 0d8d94f5919dde0536e120fa9f641cfece5a5173..82080dfd0ab26c8667b4569338f38df7269a9e6c 100644 (file)
@@ -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);