mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 21:47:49 +00:00
Remove a potential loose reference-to-const
This commit is contained in:
parent
80358cda11
commit
d82d89a92b
@ -445,7 +445,7 @@ surface locator::load_image_sub_file() const
|
||||
greyscale=true;
|
||||
}
|
||||
else if("CROP" == function){ // Slice image
|
||||
std::vector<std::string> const& slice_params = utils::split(field, ',', utils::STRIP_SPACES);
|
||||
std::vector<std::string> const slice_params = utils::split(field, ',', utils::STRIP_SPACES);
|
||||
if(slice_params.empty() != true) {
|
||||
slice = true;
|
||||
slice_rect.x = lexical_cast_default<Sint16, const std::string&>(slice_params[0]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user