summaryrefslogtreecommitdiff
path: root/src/traps.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/traps.cc')
-rw-r--r--src/traps.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/traps.cc b/src/traps.cc
index ef01aece..49d07cbf 100644
--- a/src/traps.cc
+++ b/src/traps.cc
@@ -487,11 +487,6 @@ bool_ player_activate_trap_type(s16b y, s16b x, object_type *i_ptr, s16b item)
trap = i_ptr->pval;
}
- if ((i_ptr == NULL) && (cave[y][x].o_idx != 0))
- {
- i_ptr = &o_list[cave[y][x].o_idx];
- }
-
switch (trap)
{
/* stat traps */