CleverRaven/Cataclysm-DDA — pull request #4855 by bdragon28 (2013-12-04 01:56:16+00:00)
Title: [D_GLIBCXX_DEBUG] Found another attempt to access an array out of bounds.

Don't read past the end of the here container when pressing a key past the end of the list when using the pick up interface.

```
/usr/include/c++/4.7/debug/vector:336:error: attempt to subscript container with out-of-bounds index 30, but container only holds 15 elements.
Objects involved in the operation:
sequence "this" @ 0x0x7fffffffba50 {
type = NSt7__debug6vectorI4itemSaIS1_EEE;
}
Program received signal SIGABRT, Aborted
0x00007ffff6e8d475 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory
(gdb) bt
#0 0x00007ffff6e8d475 in *__GI_raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1 0x00007ffff6e906f0 in *__GI_abort () at abort.c:92
#2 0x00007ffff773231d in __gnu_debug::_Error_formatter::_M_error (this=0x7fffffffb790) at ../../../../../src/libstdc++-v3/src/c++11/debug.cc:777
#3 0x0000000000424770 in std::__debug::vector >::operator[] (this=0x7fffffffba50, __n=30) at /usr/include/c++/4.7/debug/vector:336
#4 0x0000000000583e2f in game::pickup (this=0x7ffff6bf3010, posx=60, posy=65, min=1) at src/game.cpp:8570
#5 0x00000000005552d0 in game::handle_action (this=0x7ffff6bf3010) at src/game.cpp:2227
#6 0x000000000054a28f in game::do_turn (this=0x7ffff6bf3010) at src/game.cpp:754
#7 0x000000000071292f in main (argc=0, argv=0x7fffffffe8c0) at src/main.cpp:123
(gdb)
```