pvr: crash when CurrentPP is null

This commit is contained in:
Flyinghead 2019-09-11 23:21:14 +02:00
parent 2bdfdf96c1
commit 25a2c52960
1 changed files with 1 additions and 1 deletions

View File

@ -1215,7 +1215,7 @@ public:
{
//printf("Sprite\n");
PolyParam* d_pp=CurrentPP;
if (CurrentPP->count!=0)
if (CurrentPP == NULL || CurrentPP->count != 0)
{
d_pp=CurrentPPlist->Append();
CurrentPP=d_pp;