Skip to content

Commit f3ac58a

Browse files
committed
CourseEditor: fix RecvGameLobbyInfoEx hook
1 parent 450825e commit f3ac58a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/overlay/course_editor.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,11 @@ class CourseReplacement : public Hook
308308
}
309309

310310
inline static SafetyHookInline SumoNet_RecvGameLobbyInfoEx_hook{};
311-
static void SumoNet_RecvGameLobbyInfoEx_dest(void* a1)
311+
static int SumoNet_RecvGameLobbyInfoEx_dest(void* a1)
312312
{
313-
SumoNet_RecvGameLobbyInfoEx_hook.call(a1);
313+
int ret = SumoNet_RecvGameLobbyInfoEx_hook.call<int>(a1);
314314
UpdateCourseFromLobbyInfo();
315+
return ret;
315316
}
316317

317318
inline static SafetyHookMid SumoNet_UpdateLobbyInfoFromUI_hook{};

0 commit comments

Comments
 (0)