FreeOrion

Forums for the FreeOrion project
It is currently Tue Jun 18, 2013 4:46 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: error: 'hull_type' was not declared in this scope
PostPosted: Sun Mar 02, 2008 10:25 pm 
Offline
Static Linker
User avatar

Joined: Thu Jun 28, 2007 10:28 am
Posts: 347
There's a minor bug in svn-version...

Quote:
universe/ShipDesign.cpp: In member function 'std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > ShipDesign::Parts(ShipSlotType) const':
universe/ShipDesign.cpp:422: error: 'hull_type' was not declared in this scope
scons: *** [universe/ShipDesign.o] Error 1


Can be fixed by this:
Code:
Index: universe/ShipDesign.cpp
===================================================================
--- universe/ShipDesign.cpp     (Revision 2365)
+++ universe/ShipDesign.cpp     (Arbeitskopie)
@@ -419,7 +419,7 @@
     const std::vector<HullType::Slot>& slots = hull->Slots();

     unsigned int size = m_parts.size();
-    assert(size == hull_type->NumSlots());
+    assert(size == hull->NumSlots());

     // add to output vector each part that is in a slot of the indicated ShipSlotType
     for (unsigned int i = 0; i < size; ++i)


Top
 Profile  
 
 Post subject: Re: error: 'hull_type' was not declared in this scope
PostPosted: Sun Mar 02, 2008 11:38 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 8050
Location: Vancouver, BC
fixed


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