diff options
author | Haru <haru@dotalux.com> | 2016-05-14 21:23:48 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-05-14 21:23:48 +0200 |
commit | 87916f29b5e1a482387b40c16c224fa9a586f747 (patch) | |
tree | 717bc276c7d36f3ed02132a618221534582e3da8 /src/map | |
parent | 3be7c7f971fdacede11a6319121e42c45ea6ac01 (diff) | |
download | hercules-87916f29b5e1a482387b40c16c224fa9a586f747.tar.gz hercules-87916f29b5e1a482387b40c16c224fa9a586f747.tar.bz2 hercules-87916f29b5e1a482387b40c16c224fa9a586f747.tar.xz hercules-87916f29b5e1a482387b40c16c224fa9a586f747.zip |
Fixed an issue that causes `@showmobs` to skip entries
- Follow-up to b3c722ecf777aeeea6317755a6adfc0216b7a2bd
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/atcommand.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |