From 25a2c52960cbf03a7561df564fe957f09828c644 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 11 Sep 2019 23:21:14 +0200 Subject: [PATCH] pvr: crash when CurrentPP is null --- core/hw/pvr/ta_vtx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hw/pvr/ta_vtx.cpp b/core/hw/pvr/ta_vtx.cpp index 42dba8a4d..5c6029375 100644 --- a/core/hw/pvr/ta_vtx.cpp +++ b/core/hw/pvr/ta_vtx.cpp @@ -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;