Skip to content

Commit 3e068da

Browse files
committed
Accept droppeditem as 1-based thing id
For consistency, since all dehacked thing ids start with 1 and not zero
1 parent b71ee82 commit 3e068da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/d_deh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@ static void setMobjInfoValue(int mobjInfoIndex, int keyIndex, uint64_t value) {
17361736
case 12: mi->deathstate = (int)value; return;
17371737
case 13: mi->xdeathstate = (int)value; return;
17381738
case 14: mi->deathsound = (int)value; return;
1739-
case 15: mi->droppeditem = (int)value; return;
1739+
case 15: mi->droppeditem = (int)(value-1); return; // make it base zero (deh is 1-based)
17401740
case 16: mi->speed = (int)value; return;
17411741
case 17: mi->radius = (int)value; return;
17421742
case 18: mi->height = (int)value; return;

0 commit comments

Comments
 (0)