FreeOrion

Forums for the FreeOrion project
It is currently Tue May 21, 2013 4:08 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [SOLVED] - unable to save ship designs
PostPosted: Mon Sep 26, 2011 4:15 pm 
Offline
Space Floater
User avatar

Joined: Tue Sep 20, 2011 10:32 pm
Posts: 49
I am currently unable to save any ship designs. Design window has always had its glitches (for instance using backspace in text fields rendered them immutable), but I have been able to save new designs last week. This problem occurs in vanilla r4296, so I started a bisect at r4279.

OK 4279 ... 4288 ! 4289 4290 ... 4292 ... 4296 BROKEN

broken since r4289. Seems to be an incomplete refactoring. Reporting in case it's been unnoticed.

Compiler flags used: -g -O2 -march=core2
Platform: x86_64-pc-linux-gnu

_________________
Yesterday, we were still on the brink. Fortunately, today we have come one step further.


Last edited by cami on Wed Sep 28, 2011 9:32 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: [BUG|Incomplete] - unable to save ship designs
PostPosted: Mon Sep 26, 2011 5:36 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7888
Location: Vancouver, BC
On line 2371 of Empire.cpp, change the != to ==
Code:
    // design is valid, so just add the id to empire's set of ids that it knows about
    if (m_ship_designs.find(ship_design_id) == m_ship_designs.end()) {
        m_ship_designs.insert(ship_design_id);
        ShipDesignsChangedSignal();
    }
Edit: Fixed in SVN.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group