Author: anonymissimus
Date: Sat Oct 15 17:52:18 2011
New Revision: 51488

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51488&view=rev
Log:
Fixed usage of a reference in a commit of mine.

According to a comment by mordante in variable.hpp,
std::string& foo = vcfg["foo"] is unsafe, and silene appears to have always
used config::attribute_value foo = vcfg["foo"] (without reference).

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=51488&r1=51487&r2=51488&view=diff
==============================================================================
--- trunk/src/game_events.cpp (original)
+++ trunk/src/game_events.cpp Sat Oct 15 17:52:18 2011
@@ -814,7 +814,7 @@
 
        const unit* pass_check = NULL;
        //@deprecated ignore_passability 1.9.10
-       const config::attribute_value& ignore_passability = 
cfg["ignore_passability"];
+       const config::attribute_value ignore_passability = 
cfg["ignore_passability"];
        if (!ignore_passability.blank()) {
                WRN_NG << "[teleport]ignore_passability= is deprecated, use 
check_passability=\n";
                        if (!ignore_passability.to_bool(false))


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

Reply via email to