mirror of
https://github.com/PCSX2/pcsx2-sourceforge.git
synced 2026-02-04 03:11:18 +01:00
Added a check to the "superVU" recompiler to stop Dirge of Cerberus from crashing: a function was trying to use an uninitialized pointer.
This check could be avoided by properly initializing the values but I don't know where would that be.
This commit is contained in:
@@ -943,7 +943,14 @@ static VuBaseBlock* SuperVUBuildBlocks(VuBaseBlock* parent, u32 startpc, const V
|
||||
{
|
||||
// check if block already exists
|
||||
VuBlockHeader* pbh = &recVUBlocks[s_vu][startpc/8];
|
||||
if( pbh->pblock != NULL ) {
|
||||
|
||||
if(pbh->pblock == (VuBaseBlock*)0xfdfdfdfd)
|
||||
{
|
||||
pbh->pblock=NULL;
|
||||
pbh->delay=0;
|
||||
}
|
||||
|
||||
if ( pbh->pblock != NULL ) {
|
||||
|
||||
VuBaseBlock* pblock = pbh->pblock;
|
||||
list<VuInstruction>::iterator itinst;
|
||||
|
||||
Reference in New Issue
Block a user