mail[Wesnoth-commits] r28673 - /trunk/src/game_events.cpp


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

Header


Content

Posted by kailoran on August 17, 2008 - 14:05:
Author: ilor
Date: Sun Aug 17 14:05:56 2008
New Revision: 28673

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28673&view=rev
Log:
fix bug #12187: [set_variables] [split] with empty separator was not doing 
what it intended to do due to incorrectly converting a char to a string.

Modified:
    trunk/src/game_events.cpp

Modified: trunk/src/game_events.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_events.cpp?rev=28673&r1=28672&r2=28673&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Sun Aug 17 14:05:56 2008
@@ -1370,7 +1370,7 @@
                        {
                                for(std::string::iterator 
i=split_string.begin(); i!=split_string.end(); ++i)
                                {
-                                       split_vector.push_back(&*i);
+                                       split_vector.push_back(std::string(1, 
*i));
                                }
                        }
                        else {




Related Messages


Powered by MHonArc, Updated Sun Aug 17 15:42:14 2008