icculus / Serious-Engine

An open source version of a game engine developed by Croteam for the classic Serious Sam games.
GNU General Public License v2.0
165 stars 23 forks source link

initialization of Uint8 in SDLInput.cpp #72

Open interkosmos opened 7 years ago

interkosmos commented 7 years ago

Compiling Sources/Engine/Base/SDL/SDLInput.cpp failes with:

/tmp/Serious-Engine-master/Sources/Engine/Base/SDL/SDLInput.cpp:727:12: error: cannot initialize a variable of type 'Uint8 *' (aka 'unsigned char *') with an rvalue of type 'const Uint8 *' (aka 'const unsigned char *')
    Uint8 *keystate = SDL_GetKeyboardState(NULL);

The declaration must be changed to:

    const Uint8 *keystate = SDL_GetKeyboardState(NULL);