Skip to content

Commit 50e839c

Browse files
committed
Fix build on Unreal < 6.2
1 parent b789a79 commit 50e839c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

files/metadata2.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,10 +1315,17 @@ CMD_FUNC(cmd_metadata_remote)
13151315

13161316
CMD_FUNC(cmd_metadata)
13171317
{
1318+
#if (UNREAL_VERSION_GENERATION == 6 && UNREAL_VERSION_MAJOR >= 2)
13181319
if (client != &me && MyConnect(client) && !IsServer(client))
13191320
cmd_metadata_local(clictx, client, recv_mtags, parc, parv);
13201321
else
13211322
cmd_metadata_remote(clictx, client, recv_mtags, parc, parv);
1323+
#else
1324+
if (client != &me && MyConnect(client) && !IsServer(client))
1325+
cmd_metadata_local(client, recv_mtags, parc, parv);
1326+
else
1327+
cmd_metadata_remote(client, recv_mtags, parc, parv);
1328+
#endif
13221329
}
13231330

13241331
int metadata_server_sync(Client *client)

0 commit comments

Comments
 (0)