瀏覽代碼

Small fix to skill_damage_db parsing (#4696)

* Fixes #4690.
* Ignore the space after damage rate.
Thanks to @Tutankhaten!
Aleos 5 年之前
父節點
當前提交
1453bcad4f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/skill.cpp

+ 1 - 1
src/map/skill.cpp

@@ -22703,7 +22703,7 @@ static bool skill_parse_row_skilldamage(char* split[], int columns, int current)
 	for(int offset = 3, i = SKILLDMG_PC; i < SKILLDMG_MAX && offset < columns; i++, offset++ ){
 		value = strtol(split[offset], &result, 10);
 
-		if (*result) {
+		if (*result && *result != ' ') {
 			ShowError("skill_parse_row_skilldamage: Invalid damage %s given for skill %d, defaulting to 0.\n", result, id);
 			value = 0;
 		}