correctly checking against a bool value
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user