From 35d3fa04fe3e3d139d2f6fb04b5574f0f7705609 Mon Sep 17 00:00:00 2001 From: BrentVL-1952840 <70229620+Brentdevent@users.noreply.github.com> Date: Thu, 20 Apr 2023 22:33:00 +0200 Subject: [PATCH] Small refactor --- src/client/component/party.cpp | 2 +- src/client/component/workshop.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/component/party.cpp b/src/client/component/party.cpp index 55baa1ec..3a337c05 100644 --- a/src/client/component/party.cpp +++ b/src/client/component/party.cpp @@ -189,7 +189,7 @@ namespace party //const auto xuid = strtoull(info.get("xuid").data(), nullptr, 16); scheduler::once([=] - { + { const auto usermap_id = workshop::get_usermap_publisher_id(mapname); if (workshop::check_valid_usermap_id(mapname, usermap_id) && diff --git a/src/client/component/workshop.cpp b/src/client/component/workshop.cpp index 842a76f8..74a8cf7b 100644 --- a/src/client/component/workshop.cpp +++ b/src/client/component/workshop.cpp @@ -85,9 +85,9 @@ namespace workshop item.publisherIdInteger = std::stoul(item.publisherId); } - void load_usermap_content_stub(void* usermapsCount, int type) + void load_usermap_content_stub(void* usermaps_count, int type) { - utils::hook::invoke(game::select(0x1420D6430, 0x1404E2360), usermapsCount, type); + utils::hook::invoke(game::select(0x1420D6430, 0x1404E2360), usermaps_count, type); for (unsigned int i = 0; i < *game::usermapsCount; ++i) { @@ -103,9 +103,9 @@ namespace workshop } } - void load_mod_content_stub(void* modsCount, int type) + void load_mod_content_stub(void* mods_count, int type) { - utils::hook::invoke(game::select(0x1420D6430, 0x1404E2360), modsCount, type); + utils::hook::invoke(game::select(0x1420D6430, 0x1404E2360), mods_count, type); for (unsigned int i = 0; i < *game::modsCount; ++i) {