diff rogue3/chase.c @ 180:d9e44e18eeec

rogue3: initialize various pointers. MSVC is afraid they might get used while uninitialized.
author John "Elwin" Edwards
date Fri, 31 Jul 2015 15:34:34 -0400
parents 527e2150eaf0
children
line wrap: on
line diff
--- a/rogue3/chase.c	Thu Jul 23 19:28:12 2015 -0400
+++ b/rogue3/chase.c	Fri Jul 31 15:34:34 2015 -0400
@@ -162,7 +162,7 @@
     int x, y;
     int dist, thisdist;
     struct linked_list *item;
-    struct object *obj;
+    struct object *obj = NULL;
     coord *er = &tp->t_pos;
     int ch;