Fix reported crash when downloading mission pack index

Clicking on the "Downloading X of Y" message, visible
while the index is downloading, caused this crash.

Bug and fix reported by Nathan Fulton.
This commit is contained in:
Scott Ludwig 2016-01-25 12:40:12 -08:00
parent 5e43e0ba50
commit dd56fab4bd

View File

@ -574,6 +574,10 @@ void DownloadMissionPackForm::HideShow() {
// Get the pack info for this pack
IndexEntry *entry = (IndexEntry *)plstc->GetSelectedItemData();
if (entry == NULL) {
return;
}
char *psz = NULL;
switch (gppackm->IsInstalled(&entry->packid)) {
case 0: