Skip to content

Commit

Permalink
Fix crash in searching for battles
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Oct 2, 2023
1 parent 5cf6cfd commit 8905034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ function toId() {
* Send team to sim server
*/
sendTeam: function (team, callback) {
if (team.teamid && !team.loaded) {
if (team && team.teamid && !team.loaded) {
return this.loadTeam(team, function (team) {
app.sendTeam(team, callback);
});
Expand Down

0 comments on commit 8905034

Please sign in to comment.