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


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

Header


Content

Posted by AI0867 on June 01, 2010 - 04:01:
Author: ai0867
Date: Tue Jun  1 04:01:49 2010
New Revision: 43087

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43087&view=rev
Log:
Prevent undefined behaviour

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=43087&r1=43086&r2=43087&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Tue Jun  1 04:01:49 2010
@@ -1991,7 +1991,7 @@
                font::remove_floating_label(floating_label);
 
        // Display a message on-screen
-       const std::string& text = cfg["text"];
+       std::string text = cfg["text"];
        if(text.empty())
                return;
 




Related Messages


Powered by MHonArc, Updated Tue Jun 01 04:20:14 2010