summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2015-10-29 19:31:29 +0100
committerBardur Arantsson <bardur@scientician.net>2015-10-31 14:27:10 +0100
commit8868e95a023540e1d5007e9b5d8d1bf35a7ae9c6 (patch)
treeba84f352737353f21523f1ad44921592f2a16eaf
parent867823f4429b1215cd5c3aa6d2415fb324429891 (diff)
Fix undefined behavior in wizard mode
-rw-r--r--src/cmd1.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd1.cc b/src/cmd1.cc
index 02ad1fd..ac8e34a 100644
--- a/src/cmd1.cc
+++ b/src/cmd1.cc
@@ -2844,8 +2844,7 @@ static bool_ pattern_seq(int c_y, int c_x, int n_y, int n_x)
break;
default:
if (wizard)
- msg_format("Funny Straight Road walking, %d.",
- cave[c_y][c_x]);
+ msg_format("Funny Straight Road walking.");
return TRUE; /* Goof-up */
}