shithub: choc

Download patch

ref: 3cf762118e2817f8e5ce59cc408bb8c876f5ba48
parent: 75bedca7fb08240bc28a6cd6f7f0604231b5a403
author: Simon Howard <fraggle@soulsphere.org>
date: Sat Sep 2 15:25:10 EDT 2017

Fix warnings about P_InitSwitchList() overruns.

This function is weirdly written and the logic is hard to follow, so
clean it up. This resolves warnings about array index overruns surfaced
by cppcheck and blocking #939. Thanks @turol for discovering.