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
|
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);
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue