Fixes a map-server crash when using @showmobs (#2997)

This commit is contained in:
Valacobino 2018-03-18 14:28:51 -03:00 committed by Lemongrass3110
parent db8234b9ee
commit bde3aeb9e8

View File

@ -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;