From: TimePath Date: Fri, 13 Nov 2015 06:04:24 +0000 (+1100) Subject: Minigames: fix fatal error X-Git-Tag: xonotic-v0.8.2~1668 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=219b3f96f1ac0c597f7f1bd28a51b2dbfc9eafa8;p=xonotic%2Fxonotic-data.pk3dir.git Minigames: fix fatal error --- diff --git a/qcsrc/client/main.qc b/qcsrc/client/main.qc index 4a01f1c68..1d543af26 100644 --- a/qcsrc/client/main.qc +++ b/qcsrc/client/main.qc @@ -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);