mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-04-09 12:21:26 -06:00
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:
parent
5e43e0ba50
commit
dd56fab4bd
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user