Fix town production and acceptance cache saveload/update handling

This commit is contained in:
Jonathan G Rennison
2019-05-26 13:35:33 +01:00
parent 33344482ae
commit c2470a21af
8 changed files with 68 additions and 26 deletions

View File

@@ -76,6 +76,13 @@ public:
free(this->data);
}
void Clear()
{
this->area = TileArea(INVALID_TILE, 0, 0);
free(this->data);
this->data = nullptr;
}
/**
* Get the total covered area.
* @return The area covered by the matrix.