Skip to content

Commit 2d96cc1

Browse files
author
LocalIdentity
committed
Fix crash
1 parent 5f4d46b commit 2d96cc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@
512512
<File name="Modules/CalcBreakdown.lua" part="program" sha1="cc2454eaf888b48ad57047c38509d69792fc4e7f" />
513513
<File name="Modules/CalcDefence.lua" part="program" sha1="ff3ce3aeb471bfaaa3e47cbda9e45a9416055305" />
514514
<File name="Modules/CalcMirages.lua" part="program" sha1="64dfcbb7530fc7a69c483348cce0833912e2416f" />
515-
<File name="Modules/CalcOffence.lua" part="program" sha1="23d6d884614a812d3bdbae82437d05e929b14578" />
515+
<File name="Modules/CalcOffence.lua" part="program" sha1="d63fa0d1ad23db2632e3d2ac321b6578da95ec91" />
516516
<File name="Modules/CalcPerform.lua" part="program" sha1="abec8e7da8674be8e63c07704882e13cf5898662" />
517517
<File name="Modules/Calcs.lua" part="program" sha1="3b784306bfc18d31157fa7fc8167ac285ddafe5a" />
518518
<File name="Modules/CalcSections.lua" part="program" sha1="c0f4ba9e97ccc311a81803d459800647edb5faf1" />

src/Modules/CalcOffence.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2332,7 +2332,7 @@ function calcs.offence(env, actor, activeSkill)
23322332
}
23332333
for i = 1, #distances do
23342334
local lower = distances[i]
2335-
local upper = distances[i + 1]
2335+
local upper = distances[i + 1] or lower
23362336
if enemyDistance ~= lower then -- This ugly formatting keeps the text aligned in the display
23372337
t_insert(breakdown.AccuracyHitChance, string.rep(" ", 4 - string.len(lower))..string.rep(" ", string.len(lower) - 2)..lower .. "m: "..hitChances["hitChance" .. lower .. "m"].."%")
23382338
end

0 commit comments

Comments
 (0)