Skip to content

Commit f855c43

Browse files
committed
Don't crash when Clear Sky scripts trying to change with_battleye param (#382)
1 parent 7b2a069 commit f855c43

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/xrGame/ui/ServerList.h

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class SServerFilters
3838
bool with_pass;
3939
bool without_pass;
4040
bool without_ff;
41+
bool with_battleye{}; // don't remove, needed for Clear Sky scripts
4142
bool listen_servers;
4243
};
4344

src/xrGame/ui/UIWindow_script.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ SCRIPT_EXPORT(SServerFilters, (),
104104
.def_readwrite("with_pass", &SServerFilters::with_pass)
105105
.def_readwrite("without_pass", &SServerFilters::without_pass)
106106
.def_readwrite("without_ff", &SServerFilters::without_ff)
107-
.property ("with_battleye", +[] { return false; })
107+
.def_readwrite("with_battleye", &SServerFilters::with_battleye)
108108
.def_readwrite("listen_servers", &SServerFilters::listen_servers)
109109
];
110110
});

0 commit comments

Comments
 (0)