Merge pull request #5487 from chinhodado/patch-1

remove unnecessary nonnegative check for unsigned variable
This commit is contained in:
Unknown W. Brackets 2014-02-16 09:32:08 -08:00
commit 7fd6fce44d

View File

@ -1485,7 +1485,7 @@ namespace MainWindow
// The Menu ID is contained in wParam, so subtract
// ID_SHADERS_BASE and an additional 1 off it.
u32 index = (wParam - ID_SHADERS_BASE - 1);
if (index >= 0 && index < availableShaders.size()) {
if (index < availableShaders.size()) {
g_Config.sPostShaderName = availableShaders[index];
NativeMessageReceived("gpu resized", "");