Only compile OrderList::DebugCheckSanity when WITH_ASSERT defined

This commit is contained in:
Jonathan G Rennison
2024-01-02 14:48:57 +00:00
parent be4f8b91c6
commit 9ea49d6680
4 changed files with 9 additions and 1 deletions

View File

@@ -3972,9 +3972,11 @@ bool AfterLoadGame()
}
}
}
#ifdef WITH_ASSERT
for (OrderList *order_list : OrderList::Iterate()) {
order_list->DebugCheckSanity();
}
#endif
}
if (SlXvIsFeaturePresent(XSLFI_TRAIN_THROUGH_LOAD, 0, 1)) {