From 393483ec0529b7166b7ca558c37cc41a51f091fc Mon Sep 17 00:00:00 2001 From: Nandagopal Date: Fri, 29 Nov 2024 11:05:11 +0530 Subject: [PATCH] fixed seg fault --- src/main.cpp | 2 +- src/print.cpp | 0 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 src/print.cpp diff --git a/src/main.cpp b/src/main.cpp index 5414030..bc19514 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,6 +24,7 @@ struct Cell { }; std::vector cells; +sf::Font font; // to check for win bool isWin() { @@ -63,7 +64,6 @@ void fillNums() { } sf::Text DrawText() { - sf::Font font; sf::Text text; if (!font.loadFromFile("assests/daFont.ttf")) { std::cout << "unable"; diff --git a/src/print.cpp b/src/print.cpp deleted file mode 100644 index e69de29..0000000