src/SDL12_compat.c
changeset 78 faf3d269ede6
parent 77 ce9a1f04bb36
child 79 e241008503b0
     1.1 --- a/src/SDL12_compat.c	Wed Feb 20 23:56:10 2019 -0500
     1.2 +++ b/src/SDL12_compat.c	Wed Feb 20 23:56:34 2019 -0500
     1.3 @@ -1208,6 +1208,9 @@
     1.4      EventQueueHead->next = EventQueueAvailable;
     1.5      EventQueueAvailable = EventQueueHead;
     1.6      EventQueueHead = next;
     1.7 +    if (!next) {
     1.8 +        EventQueueTail = NULL;
     1.9 +    }
    1.10  
    1.11      return 1;
    1.12  }