Skip to content

Commit

Permalink
Fixed error on certain expansions in the Factions module
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Anderson committed Jan 15, 2025
1 parent a162979 commit 7c39a5c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions AtlasLoot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 8.15.1 - January 15, 2025

### Fixed

- Fixed error when clicking on certain expansions under the Factions module

## 8.15.0 - January 12, 2025

### Added
Expand Down
6 changes: 5 additions & 1 deletion AtlasLoot/ItemDB/ItemDB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,11 @@ function ItemDB.ContentProto:GetNameForItemTable(index)
return AtlasLoot.EncounterJournal:GetBossName(self.items[index].EncounterJournalID)
elseif self.items[index].FactionID then
local temp = C_Reputation.GetFactionDataByID(self.items[index].FactionID)
return temp.name --or "Faction "..self.items[index].FactionID
if (temp == nil) then
return nil
else
return temp.name --or "Faction "..self.items[index].FactionID
end
else
return UNKNOWN
end
Expand Down

0 comments on commit 7c39a5c

Please sign in to comment.