From 09ff0ac704e5e74f6b08dc83b9cb57016976e6ba Mon Sep 17 00:00:00 2001 From: emb <> Date: Thu, 1 Jan 2015 20:23:18 -0600 Subject: [PATCH] Fixed property assignment to invalid variable for vertical resolution. --- Source/SDL.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/SDL.cpp b/Source/SDL.cpp index c71fa40..22543b7 100644 --- a/Source/SDL.cpp +++ b/Source/SDL.cpp @@ -88,15 +88,14 @@ bool SDL::Initialize(Configuration &config) } } - // check for a few other necessary Configurations if(retVal) { - if(!config.GetProperty("vertical", hString)) + if(!config.GetProperty("vertical", vString)) { Logger::Write(Logger::ZONE_ERROR, "Configuration", "Missing property \"vertical\""); retVal = false; } - else if(hString == "stretch") + else if(vString == "stretch") { // Get current display mode of all displays. for(int i = 0; i < SDL_GetNumVideoDisplays(); ++i)