Skip to content

Commit

Permalink
fix reading golem item on char
Browse files Browse the repository at this point in the history
  • Loading branch information
pairofdocs committed Sep 26, 2021
1 parent 0f9da62 commit 145986b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gomule/src/gomule/d2s/D2Character.java
Original file line number Diff line number Diff line change
Expand Up @@ -615,15 +615,15 @@ private void readItems() throws Exception{
}

private void readGolem() throws Exception {

iReader.set_byte_pos(iKF);
iReader.skipBytes(2);
switch((int)iReader.read(8)){
case 0:
golemItem = null;
return;
}
int lItemStart = iReader.findNextFlag("JM", iKF);
// int lItemStart = iReader.findNextFlag("JM", iKF); // JM is not used for D2R items
int lItemStart = iKF + 3; // e.g iKF 1876 + skip2 + skip1byte(8bits for golem)
if (lItemStart != -1) {
// throw new Exception("Golem item not found.");
// Just do as if there is no golem item
Expand Down

0 comments on commit 145986b

Please sign in to comment.