seansweda / grs

IBL grs program

Home Page:http://www.ibl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

segfault: error at position missing from lineup

seansweda opened this issue · comments

segfault after trying to give an error to a position that's missing from defensive lineup

Pit: Conley          IP:  0.0  BF:  1   KAT:  1  MCM:  5   In: Top 8  Outs: 0
Bat: Blackmon        1: Granderson      2: Newman          3:                 
defense missing: 3b
er 5

Reading symbols from /usr/local/bin/grs...
[New LWP 17778]
Core was generated by `grs 17-1'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000000040cd9b in team::newstat (this=0x116b520, pl_name=0x0, stat=0)
    at team.cc:760
760	    if ( strlen(pl_name) ) {
(gdb) bt
#0  0x000000000040cd9b in team::newstat (this=0x116b520, pl_name=0x0, stat=0)
    at team.cc:760
#1  0x0000000000403dd6 in frame::who_stat (this=0x1170eb0, stat=0, who=5)
    at frame.cc:587
#2  0x00000000004094b3 in frame::update (this=0x1170eb0) at update.cc:828
#3  0x00000000004017e4 in play () at main.cc:190
#4  0x000000000040204e in main (argc=2, argv=0x7ffe32a43268) at main.cc:357`