Fix a crash in reporting without gpu set.

This commit is contained in:
Unknown W. Brackets committed 2013-05-18 09:47:17 -07:00
1 parent f4ed3745da
commit 33cd860de3
1 file changed
+2 -1
+2 -1
View File
@@ -243,7 +243,8 @@ namespace Reporting
Payload &payload = payloadBuffer[pos];
std::string gpuPrimary, gpuFull;
gpu->GetReportingInfo(gpuPrimary, gpuFull);
if (gpu)
gpu->GetReportingInfo(gpuPrimary, gpuFull);
UrlEncoder postdata;
postdata.Add("version", PPSSPP_GIT_VERSION);