fixed bug if no variables are defined for a player
This commit is contained in:
parent
a60afada41
commit
a8531ef41e
@ -16,7 +16,7 @@ yl_speak_up.fs_show_all_var_values = function(player, pname, var_name)
|
|||||||
local values = {}
|
local values = {}
|
||||||
local var_data = yl_speak_up.player_vars[ var_name ]
|
local var_data = yl_speak_up.player_vars[ var_name ]
|
||||||
local count_players = 0
|
local count_players = 0
|
||||||
for player_name, v in pairs(var_data) do
|
for player_name, v in pairs(var_data or {}) do
|
||||||
-- metadata is diffrent and not of relevance here
|
-- metadata is diffrent and not of relevance here
|
||||||
if(player_name and player_name ~= "$META$" and v) then
|
if(player_name and player_name ~= "$META$" and v) then
|
||||||
if(not(players_with_value[ v ])) then
|
if(not(players_with_value[ v ])) then
|
||||||
|
Loading…
Reference in New Issue
Block a user