Skip to content

Commit

Permalink
Fixed event queue corruption.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 21, 2019
1 parent d5b19d0 commit 3bdaee9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SDL12_compat.c
Expand Up @@ -1208,6 +1208,9 @@ SDL_PollEvent(SDL12_Event *event12)
EventQueueHead->next = EventQueueAvailable;
EventQueueAvailable = EventQueueHead;
EventQueueHead = next;
if (!next) {
EventQueueTail = NULL;
}

return 1;
}
Expand Down

0 comments on commit 3bdaee9

Please sign in to comment.