Skip to content

Commit

Permalink
Fixed error `PlayerNames.lua:96: attempt to concatenate field "?" (a …
Browse files Browse the repository at this point in the history
…nil value)`
  • Loading branch information
ascott18 committed Dec 13, 2019
1 parent fe6018f commit d7cc677
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Fix #1742 - Errors related to improper escaping of user input for the suggestion list.
* Fixed error `bad argument #1 to 'strlower' (string expected, got boolean)` when using Diminishing Returns icons
* Fix #1755 - Swing Timer conditions with durations other than zero seconds were not triggering updates at the proper moment.
* Fixed error `PlayerNames.lua:96: attempt to concatenate field "?" (a nil value)`

## v8.7.2
### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions Components/Core/Common/PlayerNames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ end

function NAMES:UPDATE_BATTLEFIELD_SCORE()
for i = 1, GetNumBattlefieldScores() do
local name, _, _, _, _, _, _, _, class = GetBattlefieldScore(i)
if name and class then -- sometimes this returns nil??
local name, _, _, _, _, _, _, _, _, class = GetBattlefieldScore(i)
if name and class and self.ClassColors[class] then -- sometimes this returns nil??
self.ClassColoredNameCache[name] = self.ClassColors[class] .. name .. "|r"
end
end
Expand Down
1 change: 1 addition & 0 deletions Options/CHANGELOG.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ TMW.CHANGELOG = [==[
* Fix #1742 - Errors related to improper escaping of user input for the suggestion list.
* Fixed error `bad argument #1 to 'strlower' (string expected, got boolean)` when using Diminishing Returns icons
* Fix #1755 - Swing Timer conditions with durations other than zero seconds were not triggering updates at the proper moment.
* Fixed error `PlayerNames.lua:96: attempt to concatenate field "?" (a nil value)`
## v8.7.2
### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ elseif strmatch(projectVersion, "%-%d+%-") then
end

TELLMEWHEN_VERSION_FULL = TELLMEWHEN_VERSION .. " Classic " .. TELLMEWHEN_VERSION_MINOR
TELLMEWHEN_VERSIONNUMBER = 87304 -- NEVER DECREASE THIS NUMBER (duh?). IT IS ALSO ONLY INTERNAL (for versioning of)
TELLMEWHEN_VERSIONNUMBER = 87305 -- NEVER DECREASE THIS NUMBER (duh?). IT IS ALSO ONLY INTERNAL (for versioning of)

TELLMEWHEN_FORCECHANGELOG = 86005 -- if the user hasn't seen the changelog until at least this version, show it to them.

Expand Down

0 comments on commit d7cc677

Please sign in to comment.