Use stoul instead of atoi

This commit is contained in:
BrentVL-1952840 2023-04-19 08:51:53 +02:00
parent 2c27b4fd6e
commit cc3bde3bba

View File

@ -82,7 +82,7 @@ namespace workshop
utils::string::copy(item.description, doc["Description"].GetString()); utils::string::copy(item.description, doc["Description"].GetString());
utils::string::copy(item.folderName, doc["FolderName"].GetString()); utils::string::copy(item.folderName, doc["FolderName"].GetString());
utils::string::copy(item.publisherId, doc["PublisherID"].GetString()); utils::string::copy(item.publisherId, doc["PublisherID"].GetString());
item.publisherIdInteger = atoi(item.publisherId); item.publisherIdInteger = std::stoul(item.publisherId);
} }
void load_usermap_content_stub(void* usermapsCount, int type) void load_usermap_content_stub(void* usermapsCount, int type)