summaryrefslogtreecommitdiff
path: root/src/traps.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-06-10 17:34:23 +0200
committerBardur Arantsson <bardur@scientician.net>2015-06-11 06:51:29 +0200
commit894d0831b5dd118b0072d9e651f4e51d41819c17 (patch)
treeeaf07a0bca0d2a9ecf86cf41190899d5a9942f1e /src/traps.cc
parente835c76ded369038eaa00ecba0aa7754b37994e5 (diff)
Remove dead code in player_activate_trap_type()
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 */