]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/shownames.qc
Add a few checks
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / shownames.qc
index e217e2d31e6bdad5fe4fa0ec2956abebb59acff9..b70714558326bbee3d145cd87e758c7fa7195d4a 100644 (file)
@@ -168,7 +168,12 @@ void Draw_ShowNames_All()
        LL_EACH(shownames_ent, true, LAMBDA(
                entity entcs = entcs_receiver(i);
                if (!entcs) continue;
-               WITH(entity, self, entcs, entcs.think());
+               if (entcs.think) WITH(entity, self, entcs, entcs.think());
+               else
+               {
+                       LOG_WARNING("entcs.think == null");
+                       eprint(entcs);
+               }
                if (entcs.m_entcs_private)
                {
                        it.healthvalue = entcs.healthvalue;