it works without leaks and global variables except gamestate
This commit is contained in:
parent
9de308925c
commit
eaafb06836
3 changed files with 33 additions and 8 deletions
|
|
@ -68,6 +68,8 @@ int main() {
|
|||
display_game();
|
||||
}
|
||||
|
||||
// Вызов userInput с Terminate для освобождения памяти
|
||||
userInput(Terminate, false);
|
||||
endwin();
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue