Avoid a crash when program number is zero.
authorIvan Kalvachev <ikalvachev@gmail.com>
Mon, 11 Nov 2013 23:49:17 +0000 (23:49 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 15 Feb 2014 18:29:42 +0000 (19:29 +0100)
commit59f570892017bc2b5954e013d99e7c16008de583
tree624dfd29bc9847e7cd2ef4ecec7f777fc1757405
parentb8cecddc07536c628132247ed1b7711eb57e7f83
Avoid a crash when program number is zero.

This is a workaround for a crash at:
cellnr = pgc->program_map[ptt[i].pgn-1];
when playing "The Dictator".

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/searching.c