From cec50890c0f8a8f0c099dd5ae67b28ccef0a0087 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Tue, 14 Apr 2020 07:52:47 +0200 Subject: Add error message for unsupported global skill clearing --- src/map/mob.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2