Bounds check lookahead

This commit is contained in:
kris 2021-11-02 13:42:23 +00:00
parent 8cfee55b1d
commit cf69dc9cf2
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ def main():
screen = screen_py.DHGR560NTSCScreen(palette)
else:
screen = screen_py.DHGR560Screen(palette)
if args.lookahead < 1:
parser.error('--lookahead must be at least 1')
lookahead = args.lookahead
# Conversion matrix from RGB to CAM16UCS colour values. Indexed by