Fix bug in flask-throwing
authorMartin Read <martin@blackswordsonics.com>
Mon, 23 Sep 2013 19:36:37 +0000 (20:36 +0100)
committerMartin Read <martin@blackswordsonics.com>
Mon, 23 Sep 2013 19:36:37 +0000 (20:36 +0100)
main.c

diff --git a/main.c b/main.c
index ed4f03b..d8652de 100644 (file)
--- a/main.c
+++ b/main.c
@@ -388,7 +388,7 @@ int do_command(enum game_cmd cmd)
             j = select_dir(&sy, &sx);
             if (j != -1)
             {
-                return throw_flask(i, sy, sx);
+                return throw_flask(u.inventory[i], sy, sx);
             }
         }
         return 0;