]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/compat/quake3.qc
Fixes the invincible portion of #2422 "target_items issues"
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / compat / quake3.qc
index dbf2a80177ec55718aed480b1748f7fc23385d2d..2517923f26fbe60bc14ac19a2d8a889815e204d2 100644 (file)
@@ -117,7 +117,7 @@ void target_init_use(entity this, entity actor, entity trigger)
        if (!(this.spawnflags & 8))
        {
                STAT(STRENGTH_FINISHED, actor) = 0;
-               actor.invincible_finished = 0;
+               STAT(INVINCIBLE_FINISHED, actor) = 0;
                if(STAT(BUFFS, actor)) // TODO: make a dropbuffs function to handle this
                {
                        int buffid = buff_FirstFromFlags(STAT(BUFFS, actor)).m_id;