From 54a119c56a90bddc09c1747188d9d6875ec4c167 Mon Sep 17 00:00:00 2001 From: Aleos Date: Sat, 7 Oct 2017 11:29:50 -0400 Subject: [PATCH] Resolves Skill Unit Database parsing issue (#2484) * Fixes #2483. * Properly trims the target field so it can be processed accurately. --- src/map/skill.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/skill.c b/src/map/skill.c index b55dc8a8a6..2432b53fd0 100755 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -20965,6 +20965,7 @@ static bool skill_parse_row_unitdb(char* split[], int columns, int current) skill_split_atoi(split[4],skill_db[idx]->unit_range); skill_db[idx]->unit_interval = atoi(split[5]); + trim(split[6]); if( strcmpi(split[6],"noenemy")==0 ) skill_db[idx]->unit_target = BCT_NOENEMY; else if( strcmpi(split[6],"friend")==0 ) skill_db[idx]->unit_target = BCT_NOENEMY; else if( strcmpi(split[6],"party")==0 ) skill_db[idx]->unit_target = BCT_PARTY;