mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
CRC searching should really start from run_ptr, not input_ptr
This commit is contained in:
parent
561eb42c84
commit
5f5a8dc6d7
@ -954,7 +954,7 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
||||
case NETPLAY_CMD_CRC:
|
||||
{
|
||||
uint32_t buffer[2];
|
||||
size_t tmp_ptr = netplay->input_ptr;
|
||||
size_t tmp_ptr = netplay->run_ptr;
|
||||
bool found = false;
|
||||
|
||||
if (cmd_size != sizeof(buffer))
|
||||
@ -985,7 +985,7 @@ static bool netplay_get_cmd(netplay_t *netplay,
|
||||
}
|
||||
|
||||
tmp_ptr = PREV_PTR(tmp_ptr);
|
||||
} while (tmp_ptr != netplay->input_ptr);
|
||||
} while (tmp_ptr != netplay->run_ptr);
|
||||
|
||||
if (!found)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user