init_summary für wdw, zusätzlicher assert

This commit is contained in:
Christian Schlittchen 2005-11-27 14:13:48 +00:00
parent 0c5efc7a61
commit 3705d0d1eb
2 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,8 @@ init_summary()
static int static int
write_summary() write_summary()
{ {
assert(sum_begin
|| !"init_summary must be called before before write_summary");
if (sum_begin) { if (sum_begin) {
summary * sum_end = make_summary(); summary * sum_end = make_summary();
report_summary(sum_end, sum_begin, false); report_summary(sum_end, sum_begin, false);

View File

@ -5,6 +5,7 @@ function process(orders)
print("could not read game") print("could not read game")
return -1 return -1
end end
init_summary()
-- read the orders file -- read the orders file
read_orders(orders) read_orders(orders)