correctly checking against a bool value

This commit is contained in:
2026-03-09 21:29:12 +01:00
parent a68fdb20de
commit 387df94c34

View File

@@ -20,7 +20,7 @@ bool Application::Init() {
LOG_INFO("window width: {0}, height: {1}", GetWindowData().width, GetWindowData().height);
// Init sdl
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) < 0) {
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) == 0) {
LOG_ERROR("SDL could not be initialized! {0}", SDL_GetError());
Shutdown();
return false;