Opened 7 years ago

Closed 7 years ago

#4620 closed defect (fixed)

Undefined player.sequences.time when instantly winning a rated game

Reported by: elexis Owned by: Imarok
Priority: Should Have Milestone: Alpha 22
Component: UI & Simulation Keywords:
Cc: Patch: Phab:D616

Description

Getting this stack when winning a rated game on the first turn (for example by both players being in the same team). It doesn't matter if there is a second client or not:

WARNING: JavaScript warning: gui/session/session.js line 1577
reference to undefined property player.sequences.time
ERROR: JavaScript error: gui/session/session.js line 1577
TypeError: player.sequences.time is undefined
  reportGame@gui/session/session.js:1577:7
  playerFinished@gui/session/session.js:548:3
  g_NotificationsTypes.won@gui/session/messages.js:334:3
  handleNotifications@gui/session/messages.js:541:4
  onSimulationUpdate@gui/session/session.js:804:2
  selectViewPlayer@gui/session/session.js:510:2
  __eventhandler221 (selectionchange)@viewPlayer selectionchange:0:1
  init@gui/session/session.js:321:87
  reallyStartGame@gui/loading/loading.js:102:2

Change History (2)

comment:1 by Imarok, 7 years ago

Milestone: BacklogAlpha 22
Patch: Phab:D616

comment:2 by Imarok, 7 years ago

Owner: set to Imarok
Resolution: fixed
Status: newclosed

In 19765:

Correctly init the statistics sequences.

Fixes #4620. refs rP19517, rP19564. Reviewed by: elexis.
Differential Revision: https://code.wildfiregames.com/D616

Note: See TracTickets for help on using tickets.