diff --git a/cockatrice/src/server/chat_view/chat_view.cpp b/cockatrice/src/server/chat_view/chat_view.cpp index 37a8cf075..1ffe696b4 100644 --- a/cockatrice/src/server/chat_view/chat_view.cpp +++ b/cockatrice/src/server/chat_view/chat_view.cpp @@ -459,7 +459,7 @@ bool ChatView::isModeratorSendingGlobal(QFlags u QString ChatView::getCurrentTime() const { - if (showInGameTime) { + if (game && showInGameTime) { return game->getCurrentInGameTime(); } else { return QDateTime::currentDateTime().toString("[hh:mm:ss] ");