From: divverent Date: Tue, 28 Feb 2012 11:52:14 +0000 (+0000) Subject: fix a stupid type error. X-Git-Tag: xonotic-v0.6.0~3 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fe8d2a9532d06f0a36fcde7eac7f207388b42597;p=xonotic%2Fdarkplaces.git fix a stupid type error. Why doesn't PRVM_EDICT_NUM(prvm_edict_t *) warn?!? git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11737 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=a7204e2f520d5d5b06302923ac7c359066401f04 --- diff --git a/clvm_cmds.c b/clvm_cmds.c index ccc47671..c810bbbb 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -1475,7 +1475,7 @@ static void VM_CL_runplayerphysics (prvm_prog_t *prog) else { // new use - s.self = PRVM_PROG_TO_EDICT(ent); + s.self = ent; VectorCopy(PRVM_clientedictvector(ent, origin), s.origin); VectorCopy(PRVM_clientedictvector(ent, velocity), s.velocity); VectorCopy(PRVM_clientedictvector(ent, mins), s.mins);