From 2dea74ce915cb93ca5172e68b7fe61409ac18b24 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 13 Jul 2012 11:12:31 +0900 Subject: [PATCH] Get the client entnum from the right place. When trying to get the client ent num from an entity's owner, it helps if the owner field is used :P Fixes a segfault firing nails (and sometimes rockets) in freewill's coop mod. Hopefully fixes his "trigger in clipping list" bug. --- qw/source/world.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qw/source/world.c b/qw/source/world.c index 29a906b03..3d6dd316a 100644 --- a/qw/source/world.c +++ b/qw/source/world.c @@ -941,7 +941,7 @@ SV_Move (const vec3_t start, const vec3_t mins, const vec3_t maxs, edict_t *owner; owner = PROG_TO_EDICT (&sv_pr_state, SVentity (passedict, owner)); if (owner->entnum && owner->entnum <= MAX_CLIENTS) { - client_t *cl = &svs.clients[passedict->entnum - 1]; + client_t *cl = &svs.clients[owner->entnum - 1]; clip.type |= MOVE_LAGGED; sv.lagents = cl->laggedents; sv.maxlagents = cl->laggedents_count;