Segmentation fault crashes

Program received signal SIGSEGV, Segmentation fault. 0x087e0c8a in player::eat (this=0xb7fcf27c, g=0xb7f33008, index=12) at player.cpp:4241 4241 if (inv[which].type->id == itm_wrapper) // hack because wrappers aren't containers (gdb)

compiled from git on 21 march