Fixed so the game does not crash if it cant find data in the config file

This commit is contained in:
tleety
2015-10-15 12:35:58 +02:00
parent 52fe2e697e
commit 46f6289720
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ public:
m_FrameStack->Width = 675;
m_FrameStack->Height = 1080;
if (ResourceManager::Load<ConfigFile>("Config.ini")->GetValue<int>("Story.Skip") == 1) {
if (ResourceManager::Load<ConfigFile>("Config.ini")->GetValue<int, 0>("Debug.SkipStory") == 1) {
Events::GameStart e;
m_EventBroker->Publish(e);
auto hud = new GUI::HUD(m_FrameStack, "HUD");