From 59249aa251a00a2603f22e0bd65944af2507d2fb Mon Sep 17 00:00:00 2001 From: TimePath Date: Thu, 15 Oct 2015 17:06:53 +1100 Subject: [PATCH] Net_LinkEntity: check against empty strings too --- qcsrc/lib/net.qh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/lib/net.qh b/qcsrc/lib/net.qh index 04faffc4a..834de760f 100644 --- a/qcsrc/lib/net.qh +++ b/qcsrc/lib/net.qh @@ -11,9 +11,9 @@ bool SendEntity_self(entity to, int sendflags) { return self.SendEntity3(self, t 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 == "") e.classname = "net_linked"; - if (!e.model || !self.modelindex) { + if (e.model == "" || self.modelindex == 0) { vector mi = e.mins; vector ma = e.maxs; _setmodel(e, "null"); -- 2.39.2