forked from github/server
init_summary für wdw, zusätzlicher assert
This commit is contained in:
parent
0c5efc7a61
commit
3705d0d1eb
|
@ -85,6 +85,8 @@ init_summary()
|
|||
static int
|
||||
write_summary()
|
||||
{
|
||||
assert(sum_begin
|
||||
|| !"init_summary must be called before before write_summary");
|
||||
if (sum_begin) {
|
||||
summary * sum_end = make_summary();
|
||||
report_summary(sum_end, sum_begin, false);
|
||||
|
|
|
@ -5,6 +5,7 @@ function process(orders)
|
|||
print("could not read game")
|
||||
return -1
|
||||
end
|
||||
init_summary()
|
||||
|
||||
-- read the orders file
|
||||
read_orders(orders)
|
||||
|
|
Loading…
Reference in New Issue