bugfix in sort_keys for actions

This commit is contained in:
Sokomine 2021-06-14 23:18:31 +02:00
parent a1ce1db375
commit 2ace5da2c9

View File

@ -1901,7 +1901,7 @@ yl_speak_up.sort_keys = function(t)
table.sort(keys)
for i,k in ipairs(keys) do
-- avoid cutting the single a from a_1 (action 1)
if(k and string.sub(k, 1, 1) == "a" and string.sub(k, 1, 2) ~= "aa") then
if(k and string.sub(k, 1, 1) == "a" and string.sub(k, 2, 2) ~= "_") then
-- remove the leading blank
keys[i] = string.sub(k, 2)
end