From eb7d824c3bbd189e2f9924bb7a1f646cf46de1ce Mon Sep 17 00:00:00 2001 From: Xottab-DUTY Date: Fri, 14 Apr 2023 18:49:47 +0300 Subject: [PATCH] Fix crash on multiplayer menu open in SOC (#392) --- src/xrGame/ui/UIWindow_script.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xrGame/ui/UIWindow_script.cpp b/src/xrGame/ui/UIWindow_script.cpp index f1b42a5eb34..f756ca0a981 100644 --- a/src/xrGame/ui/UIWindow_script.cpp +++ b/src/xrGame/ui/UIWindow_script.cpp @@ -201,6 +201,11 @@ SCRIPT_EXPORT(EnumGameIDs, (), .enum_("gametype") [ value("GAME_UNKNOWN", int(-1)), + // SOC IDs + value("GAME_DEATHMATCH", int(eGameIDDeathmatch)), + value("GAME_TEAMDEATHMATCH", int(eGameIDTeamDeathmatch)), + value("GAME_ARTEFACTHUNT", int(eGameIDArtefactHunt)), + // CS/COP ids value("eGameIDDeathmatch", int(eGameIDDeathmatch)), value("eGameIDTeamDeathmatch", int(eGameIDTeamDeathmatch)), value("eGameIDArtefactHunt", int(eGameIDArtefactHunt)),