mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 20:47:49 +00:00
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).
This commit is contained in:
parent
b6426bc0fd
commit
ed3cc61416
@ -814,7 +814,7 @@ WML_HANDLER_FUNCTION(teleport, event_info, cfg)
|
|||||||
|
|
||||||
const unit* pass_check = NULL;
|
const unit* pass_check = NULL;
|
||||||
//@deprecated ignore_passability 1.9.10
|
//@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()) {
|
if (!ignore_passability.blank()) {
|
||||||
WRN_NG << "[teleport]ignore_passability= is deprecated, use check_passability=\n";
|
WRN_NG << "[teleport]ignore_passability= is deprecated, use check_passability=\n";
|
||||||
if (!ignore_passability.to_bool(false))
|
if (!ignore_passability.to_bool(false))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user