Bound the iteration on the PB list when processing updates.

Fixes freezes introduced in 3.0-807 with DSPHLE on some AX games.

Apparently logic doesn't apply inside the HW/DSPHLE/UCodes directory.
This commit is contained in:
Pierre Bourdon 2012-11-13 16:50:42 +01:00
parent 764cd455b3
commit e4d18e3a8b
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ bool CUCode_AX::AXTask(u32& _uMail)
// Fixing this would require rewriting most of the AX HLE.
u32 block_addr = uAddress;
AXPB pb;
while (block_addr)
for (int i = 0; block_addr && i < NUMBER_OF_PBS; i++)
{
if (!ReadPB(block_addr, pb))
break;