More care in check_frames code so we don't check CRCs from a previous

connection
This commit is contained in:
Gregor Richards 2016-09-23 22:18:56 -04:00
parent c81b022a7d
commit ae92cfeac2

View File

@ -380,7 +380,7 @@ static bool netplay_get_cmd(netplay_t *netplay)
* arithmetic. */
do
{
if (netplay->buffer[tmp_ptr].frame == buffer[0])
if (netplay->buffer[tmp_ptr].used && netplay->buffer[tmp_ptr].frame == buffer[0])
{
found = true;
break;