]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/main.qc
Minigames: fix fatal error
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / main.qc
index 4a01f1c685841b1f361e47ce8ad49885547651be..1d543af2607457e97cf3fa85338116f72a5ce864 100644 (file)
@@ -795,7 +795,7 @@ void CSQC_Ent_Update(bool isnew)
        this.enttype = t;
        bool done = false;
        FOREACH(LinkedEntities, it.m_id == t, LAMBDA(
-               this.classname = it.netname;
+               if (isnew) this.classname = it.netname;
                if (autocvar_developer_csqcentities)
             LOG_INFOF("CSQC_Ent_Update(%d) at %f with this=%i {.entnum=%d, .enttype=%d} t=%s (%d)\n", isnew, savetime, this, this.entnum, this.enttype, this.classname, t);
                done = it.m_read(this, isnew);