Skip to content

Commit

Permalink
Merge pull request diasurgical#1849 from mewpull/pack-enum
Browse files Browse the repository at this point in the history
pack: use IDI_GOLD enum instead of boolean operation for is->IDidx
  • Loading branch information
mewmew authored Nov 14, 2019
2 parents 5f941e8 + c583d82 commit 6dfa871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/pack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static void PackItem(PkItemStruct *id, ItemStruct *is)
id->bMDur = is->_iMaxDur;
id->bCh = is->_iCharges;
id->bMCh = is->_iMaxCharges;
if (!is->IDidx)
if (is->IDidx == IDI_GOLD)
id->wValue = is->_ivalue;
}
}
Expand Down

0 comments on commit 6dfa871

Please sign in to comment.