Update memory-external/hacks/reader.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
IMXNOOBX
2025-07-13 21:22:03 +02:00
committed by GitHub
co-authored by Copilot
parent e0b1ab90ed
commit 40e9b014b4
+1 -1
View File
@@ -140,7 +140,7 @@ void CGame::loop() {
*/ */
// Read entity controller from the player pawn // Read entity controller from the player pawn
uint32_t handle = process->read<std::uint32_t>(player.pCSPlayerPawn + updater::offsets::m_hController); uintptr_t handle = process->read<std::uintptr_t>(player.pCSPlayerPawn + updater::offsets::m_hController);
int index = handle & 0x7FFF; int index = handle & 0x7FFF;
int segment = index >> 9; int segment = index >> 9;
int entry = index & 0x1FF; int entry = index & 0x1FF;