From cc3bde3bba59d805d4681573ef75eeeedd3b3671 Mon Sep 17 00:00:00 2001 From: BrentVL-1952840 <70229620+Brentdevent@users.noreply.github.com> Date: Wed, 19 Apr 2023 08:51:53 +0200 Subject: [PATCH] Use stoul instead of atoi --- src/client/component/workshop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/component/workshop.cpp b/src/client/component/workshop.cpp index cbdf9b57..842a76f8 100644 --- a/src/client/component/workshop.cpp +++ b/src/client/component/workshop.cpp @@ -82,7 +82,7 @@ namespace workshop utils::string::copy(item.description, doc["Description"].GetString()); utils::string::copy(item.folderName, doc["FolderName"].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)