Skip to content

Commit

Permalink
Check if the left text has a valid text string before sending it to T…
Browse files Browse the repository at this point in the history
…runcate
  • Loading branch information
Tercioo committed Jun 9, 2022
1 parent d08140c commit 419999f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion classes/class_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 419999f

Please sign in to comment.