Skip to content

Commit

Permalink
Fix error on first launch of D2
Browse files Browse the repository at this point in the history
  • Loading branch information
squeek502 committed Dec 12, 2017
1 parent 280f9f2 commit 0565426
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions d2info.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ while true do
end

-- need to update files here because otherwise they wouldn't update
-- while at the menu screen
output:toFile(lastInfo.player, lastInfo.level, sessions[lastInfo.player].total, sessions[lastInfo.player].current, sessions[lastInfo.player].last)
-- while at the menu screen during save+quit
if lastInfo.player then
output:toFile(lastInfo.player, lastInfo.level, sessions[lastInfo.player].total, sessions[lastInfo.player].current, sessions[lastInfo.player].last)
end
end
sleep(UPDATE_PERIOD)
end

0 comments on commit 0565426

Please sign in to comment.