Fixed logic bug.
This commit is contained in:
parent
89124cba8b
commit
c1e8384624
1 changed files with 0 additions and 1 deletions
|
@ -268,7 +268,6 @@ SDL_AddFinger(SDL_Touch* touch,SDL_Finger *finger)
|
||||||
//printf("Making room for it!\n");
|
//printf("Making room for it!\n");
|
||||||
fingers = (SDL_Finger **) SDL_realloc(touch->fingers,
|
fingers = (SDL_Finger **) SDL_realloc(touch->fingers,
|
||||||
(touch->num_fingers + 1) * sizeof(SDL_Finger *));
|
(touch->num_fingers + 1) * sizeof(SDL_Finger *));
|
||||||
touch->max_fingers = touch->num_fingers+1;
|
|
||||||
if (!fingers) {
|
if (!fingers) {
|
||||||
SDL_OutOfMemory();
|
SDL_OutOfMemory();
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue