mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 14:36:48 +00:00
Fixes a compiler warning.
This commit is contained in:
parent
a3d63b7da0
commit
3aaf85b6c5
@ -527,14 +527,14 @@ bool gamemap::location::matches_range(const std::string& xloc, const std::string
|
||||
std::vector<std::string> xlocs = utils::split(xloc);
|
||||
std::vector<std::string> ylocs = utils::split(yloc);
|
||||
|
||||
int size;
|
||||
size_t size;
|
||||
for(size = xlocs.size(); size < ylocs.size(); ++size) {
|
||||
xlocs.push_back("");
|
||||
}
|
||||
while(size > ylocs.size()) {
|
||||
ylocs.push_back("");
|
||||
}
|
||||
for(int i = 0; i != size; ++i) {
|
||||
for(size_t i = 0; i != size; ++i) {
|
||||
if(matches_range(xlocs[i],ylocs[i]))
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user