Set self->targetname to NULL when the head is thrown off

This should be a noop, since heads are only removed when an entity is
dying or dead. Noticed by maraakate and part of yquake2 issue #160.
This commit is contained in:
Yamagi Burmeister 2016-12-17 09:33:27 +01:00
parent 6f45072c26
commit 23cbffbd39

View file

@ -257,6 +257,7 @@ ThrowHead(edict_t *self, char *gibname, int damage, int type)
self->flags |= FL_NO_KNOCKBACK;
self->svflags &= ~SVF_MONSTER;
self->takedamage = DAMAGE_YES;
self->targetname = NULL;
self->die = gib_die;
if (type == GIB_ORGANIC)