Skip to content

Commit

Permalink
Fixed an error caching faction data during login
Browse files Browse the repository at this point in the history
  • Loading branch information
Breeni committed Sep 4, 2024
1 parent 725ceaf commit b6a6f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion States/Faction.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Internal.RegisterStateProvider(CreateFromMixins(FactionProviderMixin))
Internal.RegisterEvent("PLAYER_LOGIN", function()
for index=1,GetNumFactions() do
local factionData = GetFactionDataByIndex(index)
if not factionData.isHeader then
if factionData and not factionData.isHeader then
local data = BtWTodoCache.factions[factionData.factionID] or {}
data.name = factionData.name
BtWTodoCache.factions[factionData.factionID] = data
Expand Down

0 comments on commit b6a6f1d

Please sign in to comment.