Fixed logic bug.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 12 Jan 2013 14:06:58 -0500
changeset 6810 b5609445aa4c
parent 6809 54cca01b6006
child 6811 60d95fcfaf3c
Fixed logic bug.
src/events/SDL_touch.c
--- a/src/events/SDL_touch.c	Sat Jan 12 14:04:51 2013 -0500
+++ b/src/events/SDL_touch.c	Sat Jan 12 14:06:58 2013 -0500
@@ -268,7 +268,6 @@
                 //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;