]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/net.qh
Merge branch 'drjaska/2809-splashdmgforcecalcfix' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / net.qh
index 522b4ff2301f86b4e22f8c6d008e79a4f8103f83..c9cdf6981b8533cf6eb85f88a478c8ee4150c8ea 100644 (file)
@@ -117,7 +117,11 @@ STATIC_INIT(C2S_Protocol_renumber) { FOREACH(C2S_Protocol, true, it.m_id = i); }
 
        void Net_LinkEntity(entity e, bool docull, float dt, bool(entity this, entity to, int sendflags) sendfunc)
        {
-               if (e.classname == "") e.classname = "net_linked";
+               if (e.classname == "")
+               {
+                   LOG_WARN("Net_LinkEntity called on an entity without a classname, assigning default");
+                   e.classname = "net_linked";
+               }
 
                if (e.model == "" || e.modelindex == 0)
                {