fixed bug in initial configuration
This commit is contained in:
		
							parent
							
								
									ec40c4c1a2
								
							
						
					
					
						commit
						4c4992f985
					
				@ -2693,8 +2693,10 @@ yl_speak_up.input_talk = function(player, formname, fields)
 | 
			
		||||
		local dialog = yl_speak_up.speak_to[pname].dialog
 | 
			
		||||
		local d_id = yl_speak_up.speak_to[pname].d_id
 | 
			
		||||
		local count = 0
 | 
			
		||||
		for k,v in pairs(dialog) do
 | 
			
		||||
			count = count + 1
 | 
			
		||||
		if(dialog and dialog.n_dialogs) then
 | 
			
		||||
			for k,v in pairs(dialog.n_dialogs) do
 | 
			
		||||
				count = count + 1
 | 
			
		||||
			end
 | 
			
		||||
		end
 | 
			
		||||
		-- give the NPC its first dialog
 | 
			
		||||
		if(not(dialog) or count==0) then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user