Fixing serious bug with try count
authorMartin Read <martin@blackswordsonics.com>
Sat, 8 Feb 2014 17:13:31 +0000 (17:13 +0000)
committerMartin Read <martin@blackswordsonics.com>
Sat, 8 Feb 2014 17:13:31 +0000 (17:13 +0000)
monsters.cc

index 0629cda..082fc7c 100644 (file)
@@ -156,7 +156,7 @@ void death_drop(int mon)
     int pm = mptr->mon_id;
     Coord c = mptr->pos;
     Offset delta;
-    int tryct;
+    int tryct = 0;
     while (((lvl.obj_at(c) != NO_OBJ) || (lvl.terrain_at(c) != FLOOR)) &&
            (tryct < 100))
     {