mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 12:56:24 +00:00
unit.cpp: remove unused variable. Found by cppcheck.
[src/units/unit.cpp:2061]: (style) Unused variable: remove_indices
This commit is contained in:
parent
ec6191a68e
commit
165204f159
@ -2058,7 +2058,6 @@ void unit::apply_builtin_effect(std::string apply_to, const config& effect)
|
|||||||
}
|
}
|
||||||
|
|
||||||
temp_advances = utils::parenthetical_split(amlas, ',');
|
temp_advances = utils::parenthetical_split(amlas, ',');
|
||||||
std::vector<size_t> remove_indices;
|
|
||||||
|
|
||||||
for(int i = advancements_.size() - 1; i >= 0; i--) {
|
for(int i = advancements_.size() - 1; i >= 0; i--) {
|
||||||
if(std::find(temp_advances.begin(), temp_advances.end(), advancements_[i]["id"]) != temp_advances.end()) {
|
if(std::find(temp_advances.begin(), temp_advances.end(), advancements_[i]["id"]) != temp_advances.end()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user