summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-07-24 14:01:29 +0200
committerWuzzy <almikes@aol.com>2016-07-24 14:01:29 +0200
commitd2b2e01710c95cab93fb886bc8f2d42caa76b1c0 (patch)
treed84d175498975cb32421670f22cbcbc08078dd9f /init.lua
parent6f2518a5e35cd8e8bdc501275a316cf5f9265d56 (diff)
Fix crash in entry tab under conditions
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index e1d30c8..baba251 100644
--- a/init.lua
+++ b/init.lua
@@ -161,6 +161,7 @@ function doc.process_form(player,formname,fields)
local formspec = doc.formspec_core(2)..doc.formspec_category(id, playername)
doc.data.players[playername].catsel = nil
doc.data.players[playername].category = id
+ doc.data.players[playername].entry = nil
minetest.show_formspec(playername, "doc:category", formspec)
break
end