[Freeciv-tickets] [freeciv] #47938: assertion 'pcity->surplusO_SHIELD >= 0' failed

アーカイブの一覧に戻る
OSDN Ticket System norep****@osdn*****
Tue Apr 25 21:36:51 JST 2023


#47938: assertion 'pcity->surplusO_SHIELD >= 0' failed

  Open Date: 2023-04-25 15:36
Last Update: 2023-04-25 15:36

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/47938
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47938

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2023-04-25 15:36 Updated by: cazfi
 * Milestone Update from (None) to 3.0.8
 * Priority Update from 5 - Medium to 6


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 6
     MileStone: 3.0.8
     Component: Server
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket 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 information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/47938
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47938



More information about the Freeciv-tickets mailing list
アーカイブの一覧に戻る