Skip to content

Commit

Permalink
fixed seg fault
Browse files Browse the repository at this point in the history
  • Loading branch information
nanda-gopal-sb committed Nov 29, 2024
1 parent ec808a6 commit 393483e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ struct Cell {
};

std::vector<Cell> cells;
sf::Font font;

// to check for win
bool isWin() {
Expand Down Expand Up @@ -63,7 +64,6 @@ void fillNums() {
}

sf::Text DrawText() {
sf::Font font;
sf::Text text;
if (!font.loadFromFile("assests/daFont.ttf")) {
std::cout << "unable";
Expand Down
Empty file removed src/print.cpp
Empty file.

0 comments on commit 393483e

Please sign in to comment.