Check industry FindStationsAroundTiles in CheckCaches

This commit is contained in:
Jonathan G Rennison 2019-06-17 01:34:34 +01:00
parent c13ee0979f
commit c4d9404d79

View File

@ -1388,6 +1388,11 @@ void CheckCaches(bool force_check, std::function<void(const char *)> log)
if (old_industry_stations_nears[i] != ind->stations_near) {
CCLOG("industry stations_near mismatch: ind %i, (old size: %u, new size: %u)", (int)ind->index, (uint)old_industry_stations_nears[i].size(), (uint)ind->stations_near.size());
}
StationList stlist;
FindStationsAroundTiles(ind->location, &stlist, false);
if (ind->stations_near != stlist) {
CCLOG("industry FindStationsAroundTiles mismatch: ind %i, (recalc size: %u, find size: %u)", (int)ind->index, (uint)ind->stations_near.size(), (uint)stlist.size());
}
i++;
}