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 {


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to