fixed another bad string validation check involving GetChars

This commit is contained in:
Christoph Oelckers 2023-10-08 09:37:12 +02:00
parent 56929833f0
commit c8ee0cd5cc

View file

@ -1564,7 +1564,7 @@ class GLDefsParser
if (is_cvar)
{
addedcvars = true;
if (!shaderdesc.Name.GetChars())
if (shaderdesc.Name.IsEmpty())
sc.ScriptError("Shader must have a name to use cvar uniforms");
ECVarType cvartype = CVAR_Dummy;