it works without leaks and global variables except gamestate

This commit is contained in:
Rorikstr | Rust Dev 2025-09-28 13:27:41 +03:00
parent 9de308925c
commit eaafb06836
3 changed files with 33 additions and 8 deletions

View file

@ -68,6 +68,8 @@ int main() {
display_game();
}
// Вызов userInput с Terminate для освобождения памяти
userInput(Terminate, false);
endwin();
return 0;
}