任务单 #47938

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

开放日期: 2023-04-25 21:36 最后更新: 2023-05-12 00:39

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
6
严重性:
5 - Medium
处理结果:
Fixed
文件:
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.

任务单历史 (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 (关闭)
  • 优先 Update from 5 - Medium 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 Fixed
2023-05-12 00:39 Updated by: cazfi
  • Summary Updated

编辑

Please login to add comment to this ticket » 登录名