diff options
author | glx <glx@openttd.org> | 2009-12-09 02:53:59 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-12-09 02:53:59 +0000 |
commit | def740329f90aa9f3702fd5c4733d678ff7c2082 (patch) | |
tree | 3be54cf71a9e8a49389bf267a2de6862fe4d70f3 /src | |
parent | da124cb14973af8fa69923fcb90ac4a2d1314339 (diff) | |
download | openttd-def740329f90aa9f3702fd5c4733d678ff7c2082.tar.xz |
(svn r18440) -Fix (r17774): don't try to get SDL version when SDL is not loaded
Diffstat (limited to 'src')
-rw-r--r-- | src/crashlog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crashlog.cpp b/src/crashlog.cpp index fd8469f17..28b45e11b 100644 --- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -172,8 +172,10 @@ char *CrashLog::LogLibraries(char *buffer, const char *last) const #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"); |