Skip to content

Commit bf34f84

Browse files
committed
Fixed VS warnings
1 parent e1c9bfa commit bf34f84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/red4ext/src/main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ RED4EXT_C_EXPORT bool RED4EXT_CALL Main(RED4ext::PluginHandle aHandle, RED4ext::
66
{
77
switch (aReason) {
88
case RED4ext::EMainReason::Load: {
9-
RED4ext::RTTIRegistrator::Add(CP77RPC2::RegisterTypes, CP77RPC2::PostRegisterTypes);
9+
RED4ext::CRTTISystem::Get()->AddRegisterCallback(CP77RPC2::RegisterTypes);
10+
RED4ext::CRTTISystem::Get()->AddPostRegisterCallback(CP77RPC2::PostRegisterTypes);
1011
CP77RPC2::Discord::Start();
1112
aSdk->logger->InfoF(aHandle, "Loaded!\n");
1213
break;

0 commit comments

Comments
 (0)