Changeset - r19577:722935d7c623
[Not reviewed]
master
0 1 0
frosch - 12 years ago 2012-09-02 10:04:28
frosch@openttd.org
(svn r24508) -Fix [FS#5281] (24488): Content GUI crashed after downloading a NewGRF while it is selected.
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/network/core/tcp_content.cpp
Show inline comments
 
@@ -116,9 +116,11 @@ const char *ContentInfo::GetTextfile(Tex
 
		case CONTENT_TYPE_GAME_LIBRARY:
 
			tmp = Game::GetScannerLibrary()->FindMainScript(this, true);
 
			break;
 
		case CONTENT_TYPE_NEWGRF:
 
			tmp = FindGRFConfig(BSWAP32(this->unique_id), FGCM_EXACT, this->md5sum)->filename;
 
		case CONTENT_TYPE_NEWGRF: {
 
			const GRFConfig *gc = FindGRFConfig(BSWAP32(this->unique_id), FGCM_EXACT, this->md5sum);
 
			tmp = gc != NULL ? gc->filename : NULL;
 
			break;
 
		}
 
		case CONTENT_TYPE_BASE_GRAPHICS:
 
			tmp = TryGetBaseSetFile(this, true, BaseGraphics::GetAvailableSets());
 
			break;
0 comments (0 inline, 0 general)