mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Fix "I will return" button
When temporarly leaving a multiplayer game the "I will return" button didn't work. This was because there was no valid `closeSession`. Since it requires accessing `this` the function can't be an arrow function anymore.
This commit is contained in:
parent
f90804c78f
commit
0f7f8d2086
1 changed files with 2 additions and 2 deletions
|
|
@ -74,9 +74,9 @@ QuitConfirmationMenu.prototype.MultiplayerClient.prototype.Buttons =
|
|||
},
|
||||
{
|
||||
"caption": translate("Yes"),
|
||||
"onPress": closeSession =>
|
||||
"onPress": function()
|
||||
{
|
||||
(new ReturnQuestion()).display(closeSession);
|
||||
(new ReturnQuestion()).display(this.closeSession);
|
||||
}
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue