Skip to content

Commit

Permalink
Don't crash when Clear Sky scripts trying to change with_battleye par…
Browse files Browse the repository at this point in the history
…am (#382)
  • Loading branch information
Xottab-DUTY committed Oct 24, 2024
1 parent 7b2a069 commit f855c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/xrGame/ui/ServerList.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class SServerFilters
bool with_pass;
bool without_pass;
bool without_ff;
bool with_battleye{}; // don't remove, needed for Clear Sky scripts
bool listen_servers;
};

Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/ui/UIWindow_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ SCRIPT_EXPORT(SServerFilters, (),
.def_readwrite("with_pass", &SServerFilters::with_pass)
.def_readwrite("without_pass", &SServerFilters::without_pass)
.def_readwrite("without_ff", &SServerFilters::without_ff)
.property ("with_battleye", +[] { return false; })
.def_readwrite("with_battleye", &SServerFilters::with_battleye)
.def_readwrite("listen_servers", &SServerFilters::listen_servers)
];
});
Expand Down

0 comments on commit f855c43

Please sign in to comment.