From: Mario Date: Sun, 8 Jan 2023 10:21:20 +0000 (+1000) Subject: Avoid running ColorTranslateRGB on an empty string X-Git-Tag: xonotic-v0.8.6~208^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6d6f14a890414080b97aefb8138251a89b69d283;p=xonotic%2Fxonotic-data.pk3dir.git Avoid running ColorTranslateRGB on an empty string --- diff --git a/qcsrc/common/ent_cs.qh b/qcsrc/common/ent_cs.qh index d9608ebfb..aa689e59d 100644 --- a/qcsrc/common/ent_cs.qh +++ b/qcsrc/common/ent_cs.qh @@ -130,7 +130,7 @@ REGISTER_NET_TEMP(CLIENT_ENTCS) string entcs_GetName(int i) { entity e = entcs_receiver(i); - return ColorTranslateRGB(e ? e.netname : ""); + return e ? ColorTranslateRGB(e.netname) : ""; } /**