mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 11:46:50 +00:00
Don't increment an iterator if it's past the end
Found by coverity
This commit is contained in:
parent
095adba856
commit
c217ce7a12
@ -441,10 +441,10 @@ theme::label::label(const config& cfg) :
|
||||
++c;
|
||||
if(c != rgb_vec.end()){
|
||||
g = (atoi(c->c_str()));
|
||||
++c;
|
||||
}else{
|
||||
g=0;
|
||||
}
|
||||
++c;
|
||||
if(c != rgb_vec.end()){
|
||||
b=(atoi(c->c_str()));
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user