Fixed logic bug.

This commit is contained in:
Ryan C. Gordon
2013-01-12 14:06:58 -05:00
parent 63d660e4e0
commit 6cc9a81242

View File

@@ -268,7 +268,6 @@ SDL_AddFinger(SDL_Touch* touch,SDL_Finger *finger)
//printf("Making room for it!\n");
fingers = (SDL_Finger **) SDL_realloc(touch->fingers,
(touch->num_fingers + 1) * sizeof(SDL_Finger *));
touch->max_fingers = touch->num_fingers+1;
if (!fingers) {
SDL_OutOfMemory();
return -1;