Skip to content
Snippets Groups Projects
Commit e6fd7b64 authored by tanguy.cavagna's avatar tanguy.cavagna :desktop:
Browse files

Fixed tool destroy when not used

parent 77e99a63
No related branches found
No related tags found
No related merge requests found
...@@ -137,8 +137,11 @@ void destroy_game() { ...@@ -137,8 +137,11 @@ void destroy_game() {
} }
void restart_game() { void restart_game() {
destroy_tool(); if (mode == TOOL_ASSISTED) {
init_tool(); destroy_tool();
init_tool();
}
score += (TRIES_COUNT - current_try_id) * 10; score += (TRIES_COUNT - current_try_id) * 10;
set_answer(get_random_word()); set_answer(get_random_word());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment