From bde3aeb9e8616ebb27ee3d76edb68ac45b63dbf3 Mon Sep 17 00:00:00 2001 From: Valacobino <37510683+Valacobino@users.noreply.github.com> Date: Sun, 18 Mar 2018 14:28:51 -0300 Subject: [PATCH] Fixes a map-server crash when using @showmobs (#2997) --- src/map/atcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 5c32fbd056..43d6ad4d7d 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -7346,7 +7346,7 @@ ACMD_FUNC(showmobs) if((mob_id = atoi(mob_name)) == 0) mob_id = mobdb_searchname(mob_name); - if(mob_id > 0 && mobdb_checkid(mob_id) == 0){ + if(mobdb_checkid(mob_id) == 0){ snprintf(atcmd_output, sizeof atcmd_output, msg_txt(sd,1250),mob_name); // Invalid mob id %s! clif_displaymessage(fd, atcmd_output); return 0;