Skip to content

Commit 3c17670

Browse files
author
Douglas-Robert-Drugan
committed
fixed esc crashing game on main menu
1 parent 84c5821 commit 3c17670

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Intro.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,10 @@ void Intro :: enter() {
209209

210210

211211
void Intro :: logic(Freq::Time t) {
212-
if(m_pInput->key(SDLK_ESCAPE).pressed_now())
212+
if (m_pInput->key(SDLK_ESCAPE).pressed_now()) {
213213
m_pQor->quit();
214+
return;
215+
}
214216

215217
m_pRoot->logic(t);
216218
}

0 commit comments

Comments
 (0)