fix a stupid type error.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 28 Feb 2012 11:52:14 +0000 (11:52 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 28 Feb 2012 11:52:14 +0000 (11:52 +0000)
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

clvm_cmds.c

index 14f27bf..d03b632 100644 (file)
@@ -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);