diff --git a/desktop_version/src/Input.cpp b/desktop_version/src/Input.cpp index 5af2fb31..3c713294 100644 --- a/desktop_version/src/Input.cpp +++ b/desktop_version/src/Input.cpp @@ -445,6 +445,12 @@ static void menuactionpress(void) map.nexttowercolour(); break; case Menu::graphicoptions: + if (graphics.screenbuffer == NULL) + { + SDL_assert(0 && "Screenbuffer is NULL!"); + break; + } + switch (game.currentmenuoption) { case 0: diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 3965595f..da3974ca 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -251,6 +251,12 @@ static void menurender(void) } break; case Menu::graphicoptions: + if (graphics.screenbuffer == NULL) + { + SDL_assert(0 && "Screenbuffer is NULL!"); + break; + } + switch (game.currentmenuoption) { case 0: