URL:
  <http://gna.org/bugs/?15322>

                 Summary: fix global_warming() and nuclear_winter() [again]
                 Project: Freeciv
            Submitted by: syntron
            Submitted on: Dienstag 09.02.2010 um 17:13
                Category: general
                Severity: 4 - Important
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: None
         Planned Release: 2.2.0,2.1.12

    _______________________________________________________

Details:

the new terrain was used without a check if it is valid; patch attached; it
should be valid for S2_1, S2_2 and trunk


Program terminated with signal 11, Segmentation fault.
#0  0x0000000000472745 in global_warming (effect=2) at maphand.c:104
104         if (tile_city(ptile) != NULL && terrain_has_flag(new,
TER_NO_CITIES)) {
(gdb) where
#0  0x0000000000472745 in global_warming (effect=2) at maphand.c:104
#1  0x0000000000405f94 in update_environmental_upset (cause=S_POLLUTION,
current=0x95da28, accum=0x95da24,
    level=0x95da2c, upset_action_fn=0x4726c0 <global_warming>) at
srv_main.c:494
#2  0x000000000040676d in end_turn () at srv_main.c:966
#3  0x000000000040a846 in srv_main () at srv_main.c:2080
#4  0x0000000000404659 in main (argc=7, argv=0x7fff33a85068) at
civserver.c:372




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Dienstag 09.02.2010 um 17:13  Name:
20100209-trunk-fix-global_warming-nuclear_winter.patch  Size: 2kB   By:
syntron

<http://gna.org/bugs/download.php?file_id=8020>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?15322>

_______________________________________________
  Nachricht geschickt von/durch Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to