From: divverent Date: Tue, 28 Feb 2012 11:52:14 +0000 (+0000) Subject: fix a stupid type error. X-Git-Tag: xonotic-v0.8.0~96^2~292 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a7204e2f520d5d5b06302923ac7c359066401f04;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 --- diff --git a/clvm_cmds.c b/clvm_cmds.c index 14f27bf3..d03b632e 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);