Mercurial > hg > openttd
changeset 13909:c55153a15886 draft
(svn r18440) -Fix (r17774): don't try to get SDL version when SDL is not loaded
author | glx <glx@openttd.org> |
---|---|
date | Wed, 09 Dec 2009 02:53:59 +0000 |
parents | 7cce3098fbe4 |
children | 4d1535e20cc6 |
files | src/crashlog.cpp |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -172,8 +172,10 @@ #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");