From be788117d6449e414096aab62b6e8a5fc972cad7 Mon Sep 17 00:00:00 2001 From: mexikoedi Date: Fri, 27 Sep 2024 17:23:35 +0200 Subject: [PATCH] Translation: Fixed missing translation for None role error (#1637) This PR fixes #1631 . I tested it and the missing translation error for the None role doesn't appear anymore. --- CHANGELOG.md | 4 ++++ gamemodes/terrortown/gamemode/client/cl_popups.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f494042531..2e14a2e3ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel ## Unreleased +### Fixed + +- Fixed missing translation for None role error by removing it (by @mexikoedi) + ## [v0.14.0b](https://github.com/TTT-2/TTT2/tree/v0.14.0b) (2024-09-20) ### Added diff --git a/gamemodes/terrortown/gamemode/client/cl_popups.lua b/gamemodes/terrortown/gamemode/client/cl_popups.lua index 8776c26243..117199b4bf 100644 --- a/gamemodes/terrortown/gamemode/client/cl_popups.lua +++ b/gamemodes/terrortown/gamemode/client/cl_popups.lua @@ -87,7 +87,7 @@ local function RoundStartPopup() end local client = LocalPlayer() - if not client then + if not client or client:GetRole() == ROLE_NONE then return end