]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Minigames: fix fatal error
authorTimePath <andrew.hardaker1995@gmail.com>
Fri, 13 Nov 2015 06:04:24 +0000 (17:04 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Fri, 13 Nov 2015 06:04:24 +0000 (17:04 +1100)
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);