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

Back to archive index
OSDN Ticket System norep****@osdn*****
Fri May 12 00:39:44 JST 2023


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

  Open Date: 2023-04-25 15:36
Last Update: 2023-05-11 18:39

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-05-11 18:39 Updated by: cazfi
 * Summary Updated


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

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Closed
      Priority: 6
     MileStone: 3.0.8
     Component: Server
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

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
Back to archive index