Tíquete #47938

assertion 'pcity->surplus[O_SHIELD] >= 0' failed

: 2023-04-25 21:36 Última Atualização: 2023-05-12 00:39

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

Details

Split from https://osdn.net/projects/freeciv/ticket/47662#comment:12505:47662:1681274131

in city_build_building() [../../src/server/cityturn.c::2412]: assertion 'pcity->surplus[O_SHIELD] >= 0' failed.

This is an overzealous assert. Surplus can be negative if there's enough shields in the store to pay for it. That can happen on the first turn after switching to producing Gold, when it didn't empty the store in the previous turn.

Ticket History (3/7 Histories)

2023-04-25 21:36 Updated by: cazfi
  • New Ticket "assertion 'pcity->surplusO_SHIELD >= 0' failed" created
2023-04-25 21:36 Updated by: cazfi
  • Marco Update from (Nenhum) to 3.0.8 (fechado)
  • Prioridade Update from 5 - Medium to 6
2023-04-26 01:51 Updated by: cazfi
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
Comentário

Patch also for S2_6.

2023-04-28 12:14 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed
2023-05-12 00:39 Updated by: cazfi
  • Summary Updated

Editar

Please login to add comment to this ticket » Login