Check order indexing and consistency in cache check

This commit is contained in:
Jonathan G Rennison
2019-05-02 03:05:07 +01:00
parent 51579be197
commit 0e5dfa42c3
3 changed files with 17 additions and 0 deletions

View File

@@ -1489,6 +1489,11 @@ void CheckCaches(bool force_check)
assert(memcmp(&st->goods[c].cargo, buff, sizeof(StationCargoList)) == 0);
}
}
OrderList *order_list;
FOR_ALL_ORDER_LISTS(order_list) {
order_list->DebugCheckSanity();
}
}
/**