work when there is no done_command

develop
myk002 2021-03-07 12:06:27 -08:00
parent ed21ed8593
commit 403ba2b8ea
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 1 additions and 1 deletions

@ -305,7 +305,7 @@ end
local function finish_tests(done_command)
dfhack.internal.IN_TEST = false
if #done_command > 0 then
if done_command and #done_command > 0 then
dfhack.run_command(done_command)
end
end