Fixed some bugs with the new skill db

Fixes #4590

Thanks to @mazvi
This commit is contained in:
Lemongrass3110
2020-02-02 16:04:11 +01:00
parent 990c81f024
commit 5cf7aceb2a
4 changed files with 249 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ int getch( void ){
struct s_skill_unit_csv : s_skill_db {
std::string target_str;
e_skill_unit_flag unit_flag_csv;
int unit_flag_csv;
};
std::unordered_map<uint16, s_skill_require> skill_require;
@@ -1350,7 +1350,7 @@ static bool skill_parse_row_unitdb(char* split[], int columns, int current)
skill_split_atoi(split[4], entry.unit_range);
entry.unit_interval = atoi(split[5]);
entry.target_str = trim(split[6]);
entry.unit_flag_csv = static_cast<e_skill_unit_flag>(strtol(split[7], NULL, 16));
entry.unit_flag_csv = strtol(split[7], NULL, 16);
skill_unit.insert({ atoi(split[0]), entry });