remove unnecessary nonnegative check for unsigned variable

This commit is contained in:
chinhodado 2014-02-16 12:25:42 -05:00
parent 6c7c63c2af
commit 1ed1f719bc

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", "");