From cd16afe704b05affbc4e1b2b5e3d97fbf97c383d Mon Sep 17 00:00:00 2001 From: Skull Merlin <86374920+skkuull@users.noreply.github.com> Date: Tue, 17 May 2022 18:08:53 +0300 Subject: [PATCH] small fix --- src/client/component/branding.cpp | 2 +- src/client/component/scheduler.cpp | 2 +- src/client/game/game.hpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/component/branding.cpp b/src/client/component/branding.cpp index 7d168135..fd7e84e8 100644 --- a/src/client/component/branding.cpp +++ b/src/client/component/branding.cpp @@ -63,4 +63,4 @@ namespace branding }; } -//REGISTER_COMPONENT(branding::component) \ No newline at end of file +REGISTER_COMPONENT(branding::component) \ No newline at end of file diff --git a/src/client/component/scheduler.cpp b/src/client/component/scheduler.cpp index f24ac54e..1c8b7287 100644 --- a/src/client/component/scheduler.cpp +++ b/src/client/component/scheduler.cpp @@ -221,4 +221,4 @@ namespace scheduler }; } -//REGISTER_COMPONENT(scheduler::component) \ No newline at end of file +REGISTER_COMPONENT(scheduler::component) \ No newline at end of file diff --git a/src/client/game/game.hpp b/src/client/game/game.hpp index 1d6ab0c8..d1e623af 100644 --- a/src/client/game/game.hpp +++ b/src/client/game/game.hpp @@ -40,10 +40,10 @@ namespace game { if (environment::is_sp()) { - return sp_object_; + return reinterpret_cast((uint64_t)sp_object_ + base_address); } - return mp_object_; + return reinterpret_cast((uint64_t)mp_object_ + base_address); } operator T* () const