Missing a const

This commit is contained in:
ptitSeb 2016-09-21 17:20:37 +02:00
parent 1984179657
commit cf7056b4d6

View File

@ -724,7 +724,7 @@ void CInput::GetInput(BOOL bPreScan)
// clear button's buffer // clear button's buffer
memset( inp_ubButtonsBuffer, 0, sizeof( inp_ubButtonsBuffer)); memset( inp_ubButtonsBuffer, 0, sizeof( inp_ubButtonsBuffer));
Uint8 *keystate = SDL_GetKeyboardState(NULL); const Uint8 *keystate = SDL_GetKeyboardState(NULL);
// for each Key // for each Key
for (INDEX iKey=0; iKey<ARRAYCOUNT(_akcKeys); iKey++) { for (INDEX iKey=0; iKey<ARRAYCOUNT(_akcKeys); iKey++) {
const KeyConversion &kc = _akcKeys[iKey]; const KeyConversion &kc = _akcKeys[iKey];