mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 15:46:06 +00:00
Fix variable-hides-variable
This commit is contained in:
parent
a766c00b7e
commit
58f585b6e5
@ -647,8 +647,8 @@ static surface load_image_sub_file(const image::locator& loc)
|
||||
std::ostringstream ss;
|
||||
ss << "\n";
|
||||
|
||||
for(const std::string& mod : utils::parenthetical_split(loc.get_modifications(), '~')) {
|
||||
ss << "\t" << mod << "\n";
|
||||
for(const std::string& mod2 : utils::parenthetical_split(loc.get_modifications(), '~')) {
|
||||
ss << "\t" << mod2 << "\n";
|
||||
}
|
||||
|
||||
ERR_CFG << "Failed to apply a modification to an image:\n"
|
||||
@ -1464,8 +1464,8 @@ static texture create_texture_from_sub_file(const image::locator& loc)
|
||||
std::ostringstream ss;
|
||||
ss << "\n";
|
||||
|
||||
for(const std::string& mod : utils::parenthetical_split(loc.get_modifications(), '~')) {
|
||||
ss << "\t" << mod << "\n";
|
||||
for(const std::string& mod2 : utils::parenthetical_split(loc.get_modifications(), '~')) {
|
||||
ss << "\t" << mod2 << "\n";
|
||||
}
|
||||
|
||||
ERR_CFG << "Failed to apply a modification to an image:\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user