Fix possible regression from 457ed4bb43

I don't know if modifying this value in cache would cause issues, but better safe than sorry.
This commit is contained in:
Charles Dang 2024-08-21 00:40:17 -04:00
parent bafe62948c
commit e22c376d01

View file

@ -800,7 +800,7 @@ bool is_in_hex(const locator& i_locator)
bool is_empty_hex(const locator& i_locator)
{
if(!is_empty_hex_.in_cache(i_locator)) {
surface surf = get_surface(i_locator, HEXED);
surface surf = get_surface(i_locator, HEXED).clone();
// emptiness of terrain image is checked during hex cut
// so, maybe in cache now, let's recheck
if(!is_empty_hex_.in_cache(i_locator)) {