Fix the mtrack memset

This commit is contained in:
Pasi Kallinen
2016-01-06 18:15:04 +02:00
parent c2ceb88d3c
commit 785aba242a
3 changed files with 3 additions and 3 deletions

View File

@@ -325,7 +325,7 @@ boolean with_you;
xyflags = mtmp->mtrack[0].y;
xlocale = mtmp->mtrack[1].x;
ylocale = mtmp->mtrack[1].y;
memset(mtmp->mtrack, MTSZ, sizeof(coord));
memset(mtmp->mtrack, 0, sizeof(mtmp->mtrack));
if (mtmp == u.usteed)
return; /* don't place steed on the map */

View File

@@ -272,7 +272,7 @@ boolean fleemsg;
mtmp->mflee = 1;
}
/* ignore recently-stepped spaces when made to flee */
memset(mtmp->mtrack, MTSZ, sizeof(coord));
memset(mtmp->mtrack, 0, sizeof(mtmp->mtrack));
}
STATIC_OVL void

View File

@@ -980,7 +980,7 @@ register int x, y;
}
}
memset(mtmp->mtrack, MTSZ, sizeof(coord));
memset(mtmp->mtrack, 0, sizeof(mtmp->mtrack));
place_monster(mtmp, x, y); /* put monster down */
update_monster_region(mtmp);