From 8a13480695c89426a71c5b74947a81a91b63dc0c Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 1 Mar 2023 19:40:46 +0100 Subject: [PATCH] Fix updater overwriting game binaries This fixes #262 --- src/client/updater/updater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/updater/updater.cpp b/src/client/updater/updater.cpp index 22a68da1..ac2349b5 100644 --- a/src/client/updater/updater.cpp +++ b/src/client/updater/updater.cpp @@ -8,7 +8,7 @@ namespace updater { void run(const std::filesystem::path& base) { - const utils::nt::library self; + const auto self = utils::nt::library::get_by_address(run); const auto self_file = self.get_path(); updater_ui updater_ui{};