fixed bugs with undeclared variables

This commit is contained in:
Sokomine 2021-07-02 01:13:50 +02:00
parent 1717ad442b
commit b8615fd2ce
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ minetest.register_chatcommand( 'npc_talk_debug', {
description = "Sets you as debugger for the yl_speak_up-NPC with the ID <n_id>.\n"..
" <list> lists the NPC you are currently debugging.\n"..
" <off> turns debug mode off again.",
privs = {npc_talk_owner},
privs = {npc_talk_owner = true},
func = function(pname, param)
if(param and param == "off") then
local count = 0

View File

@ -86,6 +86,7 @@ yl_speak_up.get_fs_save_or_discard_changes = function(player, param)
local n_id = yl_speak_up.speak_to[pname].n_id
-- TODO
local target_name = "quit"
local target_dialog = nil -- TODO
if(target_dialog and target_dialog ~= "") then
target_name = "go on to dialog "..minetest.formspec_escape(target_dialog)
if(target_dialog == "edit_option_dialog") then