Closed Dragoon209 closed 9 years ago
that should be harmless, but at the same time the error ruins a bit of the mystique. a quick patch, should be included next build:
diff --git a/dist/shared/hack/scripts/deify.lua b/dist/shared/hack/scripts/deify.lua
index 7ade81f..ccf8c70 100644
--- a/dist/shared/hack/scripts/deify.lua
+++ b/dist/shared/hack/scripts/deify.lua
@@ -60,6 +60,7 @@ function make_set(list)
end
function choice(list)
+ if #list < 1 then return nil end
return list[math.random(#list)]
end
Whenever a player connects and starts playing, or control reverts back to nobody, I get the following error in the DF Hack Console:
The slashes seem to be in the wrong direction after the 'scripts' folder, but since it still ran the script, I'm not sure that is the problem.