From e9600b5ea1358f8f899e6de8a4ed5300b21c1875 Mon Sep 17 00:00:00 2001 From: Lily <112970249+lilyhuang-github@users.noreply.github.com> Date: Fri, 18 Apr 2025 12:21:58 -0400 Subject: [PATCH] fixed exception --- cockatrice/src/server/chat_view/chat_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] ");