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

                 Summary: utype_by_number() returns invalid pointer
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: dim. 10 févr. 2013 12:57:52 CET
                Category: general
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: Ready For Test
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: S2_1, S2_2, S2_3, S2_4, trunk
         Discussion Lock: Any
        Operating System: None
         Planned Release: 

    _______________________________________________________

Details:

Still when I was working on the network protocol, I experienced a crash
(SEGFAULT after many failed assertions) due to my changes (notably replacing
"(UnitTypeId) (unit8) -1" by "unit_count()".

Since r10762 for PR#13513, utype_by_number(game.control.num_unit_types)
returns a pointer != NULL.

Fix attached.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: dim. 10 févr. 2013 12:57:52 CET  Name: utype_by_number.diff  Size: 505
o   By: pepeto

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

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


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

Reply via email to