From: <mar...@us...> - 2014-08-19 20:56:57
|
Revision: 7512 http://sourceforge.net/p/freeorion/code/7512 Author: marcel_metz Date: 2014-08-19 20:56:47 +0000 (Tue, 19 Aug 2014) Log Message: ----------- Fixed a compile error introduced by r7510. Revision Links: -------------- http://sourceforge.net/p/freeorion/code/7510 Modified Paths: -------------- trunk/FreeOrion/UI/DesignWnd.cpp Modified: trunk/FreeOrion/UI/DesignWnd.cpp =================================================================== --- trunk/FreeOrion/UI/DesignWnd.cpp 2014-08-19 20:09:18 UTC (rev 7511) +++ trunk/FreeOrion/UI/DesignWnd.cpp 2014-08-19 20:56:47 UTC (rev 7512) @@ -2489,7 +2489,8 @@ return result; const PartType* part_type; - std::vector<ShipSlotType>& prev_type = std::vector<ShipSlotType>(); + std::vector<ShipSlotType> prev_type_instance; + std::vector<ShipSlotType>& prev_type = prev_type_instance; unsigned int slots_size = m_slots.size(); for (unsigned int i = 0; i < slots_size; ++i) { // scan through slots to find one that can mount part |