待辦事項 #47938

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

啟用日期: 2023-04-25 21:36 最後更新: 2023-05-12 00:39

回報者:
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
6
嚴重程度:
5 - 中
處理結果:
修正
檔案:
2

細節

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
  • 里程碑 Update from (無) to 3.0.8 (closed)
  • 優先權 Update from 5 - 中 to 6
2023-04-26 01:51 Updated by: cazfi
  • 負責人 Update from (無) to cazfi
  • 處理結果 Update from to Accepted
評語

Patch also for S2_6.

2023-04-28 12:14 Updated by: cazfi
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正
2023-05-12 00:39 Updated by: cazfi
  • Summary Updated

編輯

Please login to add comment to this ticket » 登入