Check if the left text has a valid text string before sending it to Truncate

This commit is contained in:
Tercio Jose
2022-06-09 09:59:35 -03:00
parent d08140c849
commit 419999fb09
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -6,8 +6,8 @@
local version, build, date, tocversion = GetBuildInfo()
_detalhes.build_counter = 9823
_detalhes.alpha_build_counter = 9823 --if this is higher than the regular counter, use it instead
_detalhes.build_counter = 9824
_detalhes.alpha_build_counter = 9824 --if this is higher than the regular counter, use it instead
_detalhes.bcc_counter = 39
_detalhes.dont_open_news = true
_detalhes.game_version = version
+2 -1
View File
@@ -2481,7 +2481,8 @@ end
local thisLine = self:GetLine(lineId)
--check if there's something showing in this line
if (thisLine.minha_tabela) then
--check if the line is shown and if the text exists for sanitization
if (thisLine.minha_tabela and thisLine:IsShown() and thisLine.lineText1:GetText()) then
local playerNameFontString = thisLine.lineText1
local text2 = thisLine.lineText2
local text3 = thisLine.lineText3