Skip to content

Commit 1ed1aed

Browse files
authored
Update unit-syndromes.lua
added missing return in the getSyndromeName function
1 parent 1fcc838 commit 1ed1aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gui/unit-syndromes.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ local function getSyndromeName(syndrome_raw)
245245
end
246246

247247
if syndrome_raw.syn_name ~= "" then
248-
syndrome_raw.syn_name:gsub("^%l", string.upper)
248+
return syndrome_raw.syn_name:gsub("^%l", string.upper)
249249
elseif is_transformation then
250250
return "Body transformation"
251251
end

0 commit comments

Comments
 (0)