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:
parent
bafe62948c
commit
e22c376d01
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue