fixed bug if no variables are defined for a player

This commit is contained in:
Sokomine 2025-06-08 14:13:29 +02:00
parent a60afada41
commit a8531ef41e

View File

@ -16,7 +16,7 @@ yl_speak_up.fs_show_all_var_values = function(player, pname, var_name)
local values = {}
local var_data = yl_speak_up.player_vars[ var_name ]
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
if(player_name and player_name ~= "$META$" and v) then
if(not(players_with_value[ v ])) then