From 87916f29b5e1a482387b40c16c224fa9a586f747 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 14 May 2016 21:23:48 +0200 Subject: Fixed an issue that causes `@showmobs` to skip entries - Follow-up to b3c722ecf777aeeea6317755a6adfc0216b7a2bd Signed-off-by: Haru --- src/map/atcommand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index d08367340..841cf855d 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -6779,7 +6779,7 @@ ACMD(showmobs) clif->message(fd, atcmd_output); it = mapit_geteachmob(); - for (md = BL_UCCAST(BL_MOB, mapit->first(it)); mapit->next(it); md = BL_UCCAST(BL_MOB, mapit->next(it))) { + for (md = BL_UCCAST(BL_MOB, mapit->first(it)); mapit->exists(it); md = BL_UCCAST(BL_MOB, mapit->next(it))) { if( md->bl.m != sd->bl.m ) continue; if( mob_id != -1 && md->class_ != mob_id ) -- cgit v1.2.3-70-g09d2