Opened 6 months ago

Closed 6 months ago

#6894 closed defect (fixed)

Error when closing the game at the end of a replay

Reported by: phosit Owned by: phosit
Priority: Must Have Milestone: Alpha 27
Component: UI – In-game Keywords:
Cc: Patch: Phab:D5224

Description

When you close the game throu the dialog which appears ath the end of a replay there is an error printet:

ERROR: JavaScript error: gui/session/PauseControl.js line 82
Game is not started
  setPaused@gui/session/PauseControl.js:82:10
  implicitResume@gui/session/PauseControl.js:60:8
  resumeGame@gui/session/session.js:507:17
  onPageClosed@gui/session/SessionMessageBox.js:35:4
  setButtonCaptionsAndVisibitily/</button[i].onPress@gui/common/utilities.js:29:11

The error does not appear when playing a game (instead of watching a replay) or when manually open the exit dialog.

It has been introduced by [27883]

Change History (3)

comment:1 by gameboy, 6 months ago

I had the same problem.

comment:2 by phosit, 6 months ago

Patch: Phab:D5224

comment:3 by phosit, 6 months ago

Resolution: fixed
Status: assignedclosed

In 27989:

Make QuitConfirmationReplay extend QuitConfirmation

Comments By: @Freagarach

Fixes: #6894

Differential Revision: https://code.wildfiregames.com/D5224

Note: See TracTickets for help on using tickets.