diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-14 07:52:47 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-04-14 07:52:47 +0200 |
commit | cec50890c0f8a8f0c099dd5ae67b28ccef0a0087 (patch) | |
tree | d94ee992dc23031f084e2c8978661804025ffefb /src/map/mob.c | |
parent | 2962a442c2019a80cb370ea5ccb50209ee30307e (diff) | |
download | hercules-cec50890c0f8a8f0c099dd5ae67b28ccef0a0087.tar.gz hercules-cec50890c0f8a8f0c099dd5ae67b28ccef0a0087.tar.bz2 hercules-cec50890c0f8a8f0c099dd5ae67b28ccef0a0087.tar.xz hercules-cec50890c0f8a8f0c099dd5ae67b28ccef0a0087.zip |
Add error message for unsupported global skill clearing
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 789b9b11f..aae09380c 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -5516,8 +5516,11 @@ static bool mob_skill_db_libconfig_sub_skill(struct config_setting_t *it, int n, // If ClearSkills flag is enabled clear all the previous skills. if (libconfig->setting_lookup_bool_real(it, "ClearSkills", &clearskills) && clearskills) { - if (mob_id < 0) // Clearing skills globaly is not supported + if (mob_id < 0) { + ShowError("mob_skill_db_libconfig_sub_skill: Global skill clearing is not supported. (Global ID %d.)\n", + mob_id); return false; + } memset(mob->db_data[mob_id]->skill, 0, sizeof(struct mob_skill) * MAX_MOBSKILL); mob->db_data[mob_id]->maxskill = 0; return true; |