Skip to content

Commit

Permalink
CourseEditor: fix RecvGameLobbyInfoEx hook
Browse files Browse the repository at this point in the history
  • Loading branch information
emoose committed Jan 10, 2025
1 parent 450825e commit f3ac58a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/overlay/course_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,11 @@ class CourseReplacement : public Hook
}

inline static SafetyHookInline SumoNet_RecvGameLobbyInfoEx_hook{};
static void SumoNet_RecvGameLobbyInfoEx_dest(void* a1)
static int SumoNet_RecvGameLobbyInfoEx_dest(void* a1)
{
SumoNet_RecvGameLobbyInfoEx_hook.call(a1);
int ret = SumoNet_RecvGameLobbyInfoEx_hook.call<int>(a1);
UpdateCourseFromLobbyInfo();
return ret;
}

inline static SafetyHookMid SumoNet_UpdateLobbyInfoFromUI_hook{};
Expand Down

0 comments on commit f3ac58a

Please sign in to comment.