1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 07:53:53 +00:00

Fix always false comparison

SDL_GetWindowWMInfo result of type SDL_bool (SDL_TRUE = 1 or
SDL_FALSE = 0) should not be compared to -1.
This commit is contained in:
Emanuel Guevel 2013-07-24 02:16:23 +02:00
parent 3fbbbdc64b
commit e7459a04b1

View file

@ -293,7 +293,7 @@ void OgreRenderer::createWindow(const std::string &title, const WindowSettings&
struct SDL_SysWMinfo wmInfo;
SDL_VERSION(&wmInfo.version);
if(-1 == SDL_GetWindowWMInfo(mSDLWindow, &wmInfo))
if(SDL_FALSE == SDL_GetWindowWMInfo(mSDLWindow, &wmInfo))
throw std::runtime_error("Couldn't get WM Info!");
Ogre::String winHandle;