From 976ddecd1060f0de4b77e68628f2d64fa6bb82a4 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Wed, 23 Sep 2020 16:56:28 +0200 Subject: [PATCH] source/Game.cpp: in run() exit if graphics could not be initialized. --- source/Game.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Game.cpp b/source/Game.cpp index 2a3f9e9..dcb271d 100644 --- a/source/Game.cpp +++ b/source/Game.cpp @@ -32,7 +32,9 @@ Game::~Game() void Game::run() { - m_graphics->init(); + if (!m_graphics->init()) { + return; + } init();