diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-25 02:58:57 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-25 02:58:57 +0000 |
commit | 8b6cf6a48586317e5629bddf5a32dc84b2663d63 (patch) | |
tree | 0b1e12e5b22c7b587208a206ebdcbc5efb494111 /NorthstarDedicatedTest/playlist.cpp | |
parent | c488ea907ce56e3d52e7bd02a082b2fd1fe1a205 (diff) | |
download | NorthstarLauncher-8b6cf6a48586317e5629bddf5a32dc84b2663d63.tar.gz NorthstarLauncher-8b6cf6a48586317e5629bddf5a32dc84b2663d63.zip |
fix setplaylistvaroverride bug
Diffstat (limited to 'NorthstarDedicatedTest/playlist.cpp')
-rw-r--r-- | NorthstarDedicatedTest/playlist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/playlist.cpp b/NorthstarDedicatedTest/playlist.cpp index 3de5b8c8..b853a40a 100644 --- a/NorthstarDedicatedTest/playlist.cpp +++ b/NorthstarDedicatedTest/playlist.cpp @@ -49,7 +49,7 @@ void InitialisePlaylistHooks(HMODULE baseAddress) HookEnabler hook; ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x222180, &Onclc_SetPlaylistVarOverrideHook, reinterpret_cast<LPVOID*>(&Onclc_SetPlaylistVarOverride)); - ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x18ED17, &SetPlaylistVarOverrideHook, reinterpret_cast<LPVOID*>(&SetPlaylistVarOverrideOriginal)); + ENABLER_CREATEHOOK(hook, (char*)baseAddress + 0x18ED00, &SetPlaylistVarOverrideHook, reinterpret_cast<LPVOID*>(&SetPlaylistVarOverrideOriginal)); // patch to prevent clc_SetPlaylistVarOverride from being able to crash servers if we reach max overrides due to a call to Error (why is this possible respawn, wtf) // todo: add a warning for this |