Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

Commit

Permalink
Fix crash when no game configuration or installation packs were found.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfn committed Dec 27, 2009
1 parent d2e3f8f commit b729ef1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions radiant/preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3389,6 +3389,9 @@ void CGameInstall::BuildDialog() {

void CGameInstall::Run() {
ScanGames();
if (m_availGames[0] == GAME_NONE) {
return;
}
if ( DoModal() == IDCANCEL ) {
Sys_Printf( "game dialog cancelled\n" );
return;
Expand Down Expand Up @@ -3565,5 +3568,7 @@ void CGameInstall::ScanGames() {
m_availGames[ iGame++ ] = GAME_JA;
}
}
Sys_Printf("No installable games found in: %s\n",
pakPaths.GetBuffer() );
}

0 comments on commit b729ef1

Please sign in to comment.