Summary: Specials vector size saved as specials_size, but
loaded as special_size
                 Project: Freeciv
            Submitted by: jtn
            Submitted on: Sat Jun 23 13:00:37 2012
                Category: None
                Severity: 2 - Minor
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.3.2,S2_4,trunk
         Discussion Lock: Any
        Operating System: Any
         Planned Release: 



In savegame2.c, the size of the specials vector is saved as
"savefile.specials_size", but loaded as "savefile.special_size".

Noticed as this leads to a warning in the verbose log on load: "unused entry:

(I'm not quite sure of the purpose of these _size entries, given that on
loading they are immediately overwritten by the count returned by
secfile_lookup_str_vec() anyway. So they seem redundant. Haven't thoroughly
checked yet, though. The fact that we've been loading the specials size as 0
since 2.3.0 and the world hasn't ended yet corroborates this.)


Reply to this item at:


  Message sent via/by Gna!

Freeciv-dev mailing list

Reply via email to