diff options
| -rw-r--r-- | engines/glk/alan2/alan2.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/glk/alan2/alan2.cpp b/engines/glk/alan2/alan2.cpp index ccac7a6a02..d875deecb3 100644 --- a/engines/glk/alan2/alan2.cpp +++ b/engines/glk/alan2/alan2.cpp @@ -161,8 +161,11 @@ static void syncEventQueue(Common::Serializer &s) {  	EvtqElem *arr = eventq;  	if (s.isLoading()) { -		for (i = 0; arr[i - 1].time != 0; ++i) +		i = 0; +		do {  			arr[i].synchronize(s); +			i++; +		} while (arr[i - 1].time != 0);  		etop = i - 1;  	} else {  		// Mark the top  | 
