Resolve some compile errors and warnings
This commit is contained in:
parent
69635631c0
commit
1ab4ebe576
@ -5296,12 +5296,8 @@ static bool read_homunculusdb( char* str[], size_t columns, size_t current ){
|
||||
return true;
|
||||
}
|
||||
|
||||
int main( int argc, char *argv[] ){
|
||||
return main_core<Csv2YamlTool>( argc, argv );
|
||||
}
|
||||
|
||||
// Copied and adjusted from skill.cpp
|
||||
static bool skill_parse_row_producedb(char* split[], int columns, int current) {
|
||||
static bool skill_parse_row_producedb(char* split[], size_t columns, size_t current) {
|
||||
t_itemid nameid = static_cast<t_itemid>(strtoul(split[1], nullptr, 10));
|
||||
|
||||
if (nameid == 0) {
|
||||
@ -5335,7 +5331,7 @@ static bool skill_parse_row_producedb(char* split[], int columns, int current) {
|
||||
entry.req_skill_lv = skill_lv;
|
||||
}
|
||||
|
||||
for (uint8 x = 5; x+1 < columns && split[x] && split[x+1]; x += 2) {
|
||||
for (size_t x = 5; x+1 < columns && split[x] && split[x+1]; x += 2) {
|
||||
nameid = static_cast<t_itemid>(strtoul(split[x], nullptr, 10));
|
||||
item_name = util::umap_find(aegis_itemnames, nameid);
|
||||
|
||||
@ -5366,7 +5362,7 @@ static bool skill_parse_row_producedb(char* split[], int columns, int current) {
|
||||
}
|
||||
|
||||
// Copied and adjusted from skill.cpp
|
||||
static bool skill_parse_row_changematerialdb(char* split[], int columns, int current)
|
||||
static bool skill_parse_row_changematerialdb(char* split[], size_t columns, size_t current)
|
||||
{
|
||||
t_itemid nameid = static_cast<t_itemid>(strtoul(split[1], nullptr, 10));
|
||||
|
||||
@ -5387,7 +5383,7 @@ static bool skill_parse_row_changematerialdb(char* split[], int columns, int cur
|
||||
s_skill_changematerial_db_csv item = {};
|
||||
|
||||
item.baserate = static_cast<uint16>(strtoul(split[2], nullptr, 10));
|
||||
for (uint16 x = 3; x+1 < columns && split[x] && split[x+1]; x += 2) {
|
||||
for (size_t x = 3; x+1 < columns && split[x] && split[x+1]; x += 2) {
|
||||
item.qty.insert({ static_cast<uint16>(strtoul(split[x], nullptr, 10)), static_cast<uint16>(strtoul(split[x+1], nullptr, 10)) });
|
||||
}
|
||||
|
||||
@ -5462,3 +5458,7 @@ static bool skill_producedb_yaml(void) {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
int main( int argc, char *argv[] ){
|
||||
return main_core<Csv2YamlTool>( argc, argv );
|
||||
}
|
||||
|
||||
@ -557,9 +557,9 @@ static bool itemdb_read_combos(const char* file);
|
||||
static bool cashshop_parse_dbrow( char* fields[], size_t columns, size_t current );
|
||||
static bool read_homunculus_skilldb( char* split[], size_t columns, size_t current );
|
||||
static bool read_homunculusdb( char* str[], size_t columns, size_t current );
|
||||
static bool skill_parse_row_producedb(char* fields[], int columns, int current);
|
||||
static bool skill_parse_row_producedb(char* fields[], size_t columns, size_t current);
|
||||
static bool skill_producedb_yaml();
|
||||
static bool skill_parse_row_changematerialdb(char* fields[], int columns, int current);
|
||||
static bool skill_parse_row_createarrowdb(char* fields[], int columns, int current);
|
||||
static bool skill_parse_row_producedb(char *split[], size_t columns, size_t current);
|
||||
static bool skill_parse_row_changematerialdb(char* fields[], size_t columns, size_t current);
|
||||
|
||||
#endif /* CSV2YAML_HPP */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user