fix an uninitialized variable
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 19 Feb 2007 01:52:37 +0000 (01:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 19 Feb 2007 01:52:37 +0000 (01:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6864 d7cf8633-e32d-0410-b094-e92efae38249

sv_move.c

index 2c1eb00..6778992 100644 (file)
--- a/sv_move.c
+++ b/sv_move.c
@@ -124,7 +124,9 @@ qboolean SV_movestep (prvm_edict_t *ent, vec3_t move, qboolean relink, qboolean
                for (i=0 ; i<2 ; i++)
                {
                        VectorAdd (ent->fields.server->origin, move, neworg);
-                       if (!noenemy)
+                       if (noenemy)
+                               enemy = prog->edicts;
+                       else
                        {
                                enemy = PRVM_PROG_TO_EDICT(ent->fields.server->enemy);
                                if (i == 0 && enemy != prog->edicts)