Skip to content

Commit

Permalink
Fix #55
Browse files Browse the repository at this point in the history
  • Loading branch information
daidodo committed Jan 4, 2023
1 parent c6b5175 commit 14a26fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified Diablo Edit2/DiabloEdit2.rc
Binary file not shown.
3 changes: 2 additions & 1 deletion Diablo Edit2/DlgFoundry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ void CDlgFoundry::WriteTypeSpecificInfo(CTypeSpecificInfo & spec, const CItemMet
spec.iMaxDurability.reset();
if (spec.iMaxDurability.exist() && spec.iMaxDurability > 0) {
spec.iCurDur.ensure() = intOf(m_edDurability);
validate((spec.iCurDur <= spec.iMaxDurability), 30);
// validate((spec.iCurDur <= spec.iMaxDurability), 30);
validate((spec.iCurDur < 256), 29);
}else
spec.iCurDur.reset();
const int s2 = intOf(m_sExtSockets);
Expand Down

0 comments on commit 14a26fc

Please sign in to comment.