From b6b105dd676e3a30efbd80c609b479f4f13be102 Mon Sep 17 00:00:00 2001 From: JamDog Date: Thu, 16 Dec 2010 01:04:04 +0000 Subject: [PATCH] Bug-Fix: medit mob flags bug where wrong flag is set --- changelog | 2 ++ src/medit.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 3089675..ec4e7f9 100644 --- a/changelog +++ b/changelog @@ -35,6 +35,8 @@ export (QQ's a zone into a tarball) Xlist (mlist, olist, rlist, zlist, slist, tlist, qlist) (lots of major bugfixes too) @ +[Dec 16 2010] - Jamdog + Bug-Fix: Fixed illegal mob flag bug where medit set wrong flag [Dec 10 2010] - Jamdog Minor bug fixes, added MAIL flag names and fixed compile warnings Bug Fix: Alignment in medit now saves when it's the only thing edited (thanks cosine_omerta) diff --git a/src/medit.c b/src/medit.c index 85dc273..afcb93e 100644 --- a/src/medit.c +++ b/src/medit.c @@ -887,7 +887,7 @@ void medit_parse(struct descriptor_data *d, char *arg) write_to_output(d, "Enter mob flags (0 to quit) :"); return; } else if (j <= NUM_MOB_FLAGS) { - TOGGLE_BIT_AR(MOB_FLAGS(OLC_MOB(d)), (i - 1)); + TOGGLE_BIT_AR(MOB_FLAGS(OLC_MOB(d)), (j)); } medit_disp_mob_flags(d); return;