better fix for #6364

This commit is contained in:
Ingo Weyrich 2021-09-19 12:27:07 +02:00
parent f47eb15d2b
commit dd549c2bb9

View File

@ -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; return 0.f;
} }