Fixes a crash in the csv2yaml tool (#6141)

This commit is contained in:
Kagetsu 2021-07-27 13:34:59 -04:00 committed by GitHub
parent 6f4fc838c9
commit efd66000f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2957,7 +2957,7 @@ static bool itemdb_read_randomopt_group(char* str[], int columns, int current) {
if (group != nullptr)
entries = group->slots[j];
std::shared_ptr<s_random_opt_group_entry> entry;
std::shared_ptr<s_random_opt_group_entry> entry = std::make_shared<s_random_opt_group_entry>();
entry->id = static_cast<uint16>(randid_tmp);
entry->min_value = (int16)strtoul(str[k + 1], nullptr, 10);