Skip to content

Commit 75d9d1c

Browse files
committed
Don't crash on throwing missiles into lava
1 parent e88a74d commit 75d9d1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crawl-ref/source/beam.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2866,7 +2866,7 @@ void bolt::drop_object()
28662866

28672867
// If the player threw this, mark it as thrown so that they'll pick it up
28682868
// again when they walk over it.
2869-
if (id != NON_ITEM && ranged_atk->attacker->is_player())
2869+
if (id >= 0 && id != NON_ITEM && ranged_atk->attacker->is_player())
28702870
env.item[id].flags |= ISFLAG_THROWN;
28712871
}
28722872

0 commit comments

Comments
 (0)