diff --git a/src/eressea/lua/eressea.cpp b/src/eressea/lua/eressea.cpp index 070903f5a..3a045525b 100644 --- a/src/eressea/lua/eressea.cpp +++ b/src/eressea/lua/eressea.cpp @@ -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); diff --git a/src/scripts/wdw-run.lua b/src/scripts/wdw-run.lua index 5613d6399..e836d0a31 100644 --- a/src/scripts/wdw-run.lua +++ b/src/scripts/wdw-run.lua @@ -5,6 +5,7 @@ function process(orders) print("could not read game") return -1 end + init_summary() -- read the orders file read_orders(orders)