Skip to content

Commit

Permalink
fixed another bad string validation check involving GetChars
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 11, 2023
1 parent 354c64e commit fe6decd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/r_data/gldefs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe6decd

Please sign in to comment.