diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index 7759ed5..9d70e34 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -2701,7 +2701,7 @@ void PrefsDlg::BuildDialog(){ // end new prefs dialog -void PrefsDlg::LoadTexdefPref( texdef_t* pTexdef, char* pName ){ +void PrefsDlg::LoadTexdefPref( texdef_t* pTexdef, const char* pName ){ char buffer[256]; memset( pTexdef, 0, sizeof( texdef_t ) ); @@ -3412,7 +3412,7 @@ void CGameInstall::Run() { radCreateDirectory(gameFilePath); } - switch ( m_availGame[ m_nComboSelect ] ) { + switch ( m_availGames[ m_nComboSelect ] ) { case GAME_Q2: gameFilePath += "q2.game"; break; diff --git a/radiant/preferences.h b/radiant/preferences.h index 9a12076..6aad97d 100644 --- a/radiant/preferences.h +++ b/radiant/preferences.h @@ -494,7 +494,7 @@ void UpdateNvidiaAeroHack(); void LoadPrefs(); void SavePrefs(); -void LoadTexdefPref( texdef_t* pTexdef, char* pName ); +void LoadTexdefPref( texdef_t* pTexdef, const char* pName ); PrefsDlg (); virtual ~PrefsDlg (){