better fix for #6364
This commit is contained in:
parent
f47eb15d2b
commit
dd549c2bb9
@ -210,7 +210,7 @@ float estimate_ambient_light(const array2D<float> &R, const array2D<float> &G, c
|
||||
}
|
||||
}
|
||||
|
||||
if (p.size() == 0) {
|
||||
if (p.empty()) {
|
||||
return 0.f;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user