Преглед изворни кода

Fixed an issue with skill db conversion (#6398)

With 6bc0dff the csv2yaml tool does not use deprecated constants anymore.
In our conversion logic we still used them though and therefore conversion might crash.

Thanks to @Rytech2
Lemongrass3110 пре 3 година
родитељ
комит
02f247b798
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/tool/csv2yaml.cpp

+ 2 - 2
src/tool/csv2yaml.cpp

@@ -1998,8 +1998,8 @@ static bool skill_parse_row_skilldb(char* split[], int columns, int current) {
 
 			for (int i = 1; i < MAX_AMMO_TYPE; i++) {
 				if (temp & 1 << i) {
-					constant = constant_lookup(i, "A_");
-					constant.erase(0, 2);
+					constant = constant_lookup(i, "AMMO_");
+					constant.erase(0, 5);
 					body << YAML::Key << name2Upper(constant) << YAML::Value << "true";
 					temp ^= 1 << i;
 				}