Only compile OrderList::DebugCheckSanity when WITH_ASSERT defined
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user