Changeset - r13899:394023a0dfe1
[Not reviewed]
master
0 1 0
glx - 15 years ago 2009-12-09 02:53:59
glx@openttd.org
(svn r18440) -Fix (r17774): don't try to get SDL version when SDL is not loaded
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/crashlog.cpp
Show inline comments
 
@@ -172,8 +172,10 @@ char *CrashLog::LogLibraries(char *buffe
 
#endif /* WITH_PNG */
 

	
 
#ifdef WITH_SDL
 
	const SDL_version *v = SDL_CALL SDL_Linked_Version();
 
	buffer += seprintf(buffer, last, " SDL:        %d.%d.%d\n", v->major, v->minor, v->patch);
 
	if (SDL_CALL SDL_Linked_Version != NULL) {
 
		const SDL_version *v = SDL_CALL SDL_Linked_Version();
 
		buffer += seprintf(buffer, last, " SDL:        %d.%d.%d\n", v->major, v->minor, v->patch);
 
	}
 
#endif /* WITH_SDL */
 

	
 
	buffer += seprintf(buffer, last, "\n");
0 comments (0 inline, 0 general)