barf: correct last phase number

This commit is contained in:
Luke Granger-Brown 2024-03-12 01:54:52 +00:00
parent 5a3e9173c6
commit 416bb233e1

View file

@ -123,7 +123,7 @@ func (a *application) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
http.Error(rw, "response data corrupt!", http.StatusInternalServerError) http.Error(rw, "response data corrupt!", http.StatusInternalServerError)
return return
} }
if response.CurrentPhase >= 5 { if response.CurrentPhase >= 6 {
// Make sure people who have saved _completion_ start at the beginning. // Make sure people who have saved _completion_ start at the beginning.
response.CurrentPhase = 0 response.CurrentPhase = 0
response.CurrentPhaseDialog = 0 response.CurrentPhaseDialog = 0