mail[Wesnoth-commits] r28689 - /trunk/src/version.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by shadowm2006 on August 18, 2008 - 02:14:
Author: shadowmaster
Date: Mon Aug 18 01:32:11 2008
New Revision: 28689

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28689&view=rev
Log:
* Fixed a small reggression

Modified:
    trunk/src/version.cpp

Modified: trunk/src/version.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/version.cpp?rev=28689&r1=28688&r2=28689&view=diff
==============================================================================
--- trunk/src/version.cpp (original)
+++ trunk/src/version.cpp Mon Aug 18 01:32:11 2008
@@ -44,7 +44,7 @@
 }
 
 version_info::version_info(const std::string& str)
-       : nums_(3,0), sane_(false)
+       : nums_(3,0), sane_(true)
 {
        const std::vector<std::string>& string_parts = utils::split(str,'.');
        // first two components are required to be valid numbers, though
@@ -81,9 +81,8 @@
                                }
                        }
                }
-               sane_ = true;
        } catch (bad_lexical_cast const&) {
-               ;
+               sane_ = false;
        } catch (std::out_of_range const&) {
                ;
        }




Related Messages


Powered by MHonArc, Updated Mon Aug 18 02:41:08 2008