diff --git a/JGE/src/winmain.cpp b/JGE/src/winmain.cpp index ac587d684..455caf405 100644 --- a/JGE/src/winmain.cpp +++ b/JGE/src/winmain.cpp @@ -560,7 +560,7 @@ LRESULT CALLBACK WndProc( HWND hWnd, // Handle For This Window { g_keys[wParam] = TRUE; // Set The Selected Key (wParam) To True for (signed int i = sizeof(gWinKeyCodes)/sizeof(gWinKeyCodes[0]); i > 0; --i) - if (gWinKeyCodes[i] == wParam) { gKeyBuffer.push(make_pair(gPSPKeyMasks[i],0x8000+key)); return 0; } + if (gWinKeyCodes[i] == wParam) { gKeyBuffer.push(make_pair(gPSPKeyMasks[i],0x8000+wParam)); return 0; } return 0; } break; // Break