fixed exception

This commit is contained in:
Lily 2025-04-18 12:21:58 -04:00
parent 6f8e0100b5
commit e9600b5ea1
No known key found for this signature in database
GPG key ID: 57E5B0E79E93B05C

View file

@ -459,7 +459,7 @@ bool ChatView::isModeratorSendingGlobal(QFlags<ServerInfo_User::UserLevelFlag> u
QString ChatView::getCurrentTime() const
{
if (showInGameTime) {
if (game && showInGameTime) {
return game->getCurrentInGameTime();
} else {
return QDateTime::currentDateTime().toString("[hh:mm:ss] ");