Tíquete #46404

qt: city_dialog::(next|prev)_city() buggy

: 2023-01-01 01:07 Última Atualização: 2023-01-08 06:30

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
5 - Medium
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
1

Details

S3_0 Qt-client city_dialog::next_city() and city_dialog::prev_city() may even crash if the player has no cities (presumably one should have no city dialog to click next/prev from when that's the case, but with unlucky timing it's possible)

- City list size is against exactly 1 (meaning that the open city dialog is about the only city), not catching the empty city list case
- The next city is assigned in a meaningless loop, that just overwrites previous round result until it reach the city list size

Ticket History (3/5 Histories)

2023-01-01 01:07 Updated by: cazfi
  • New Ticket "qt: city_dialog::(next|prev)_city() buggy" created
2023-01-01 01:25 Updated by: cazfi
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
2023-01-01 01:25 Updated by: cazfi
Comentário

Fix to all branches, including S2_6.

2023-01-08 06:30 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Attachment File List

Editar

Please login to add comment to this ticket » Login