Skip to content

Commit edc3dd1

Browse files
fixup! Add exit game function
1 parent 61656ce commit edc3dd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shm/src/Game.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ Game::ConfirmOption Game::confirmOption(std::string announcemen) {
140140

141141
bool Game::exitGame() {
142142
while (true) {
143-
ConfirmOption exitAnswer = confirmOption("Are you sure you wanna exit game? Y/N";
143+
ConfirmOption exitAnswer = confirmOption("Are you sure you wanna exit game? Y/N");
144144
if (exitAnswer == ConfirmOption::Yes) {
145145
return true;
146146
}
147147
if (exitAnswer == ConfirmOption::No) {
148-
return false
148+
return false;
149149
}
150150
}
151151
}

0 commit comments

Comments
 (0)