Skip to content

Commit

Permalink
Fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhutchings committed Jul 15, 2020
1 parent c69905a commit de9ab2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/render/m_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ void MWindow::onClick(int x, int y, bool m) {
}
}
}
this->player->updateBlock(x, y, true);
if (player) {
this->player->updateBlock(x, y, true);
}
} else {
// Right click
if (player) {
Expand Down

0 comments on commit de9ab2f

Please sign in to comment.