* Fix wrong pointer dereference in InputTask.
[matthijs/ABM2.git] / ABM2 / Engine / InputTask.cpp
index 54e71cbca99d73ae76a637ffcfa38ac3ef57d8c8..97f04f8747690f2f8028c47d01b7152dce16d657 100755 (executable)
@@ -51,7 +51,7 @@ void CInputTask::Update()
        SDL_PumpEvents();\r
        oldButtons=buttons;\r
        buttons=SDL_GetRelativeMouseState(&dX,&dY);\r
-       memcpy((unsigned char*)(*oldKeys),keys,sizeof(unsigned char)*keyCount);\r
+       memcpy(oldKeys,keys,sizeof(unsigned char)*keyCount);\r
        keys=SDL_GetKeyState(&keyCount);\r
 }\r
 \r