Skip to content

Commit

Permalink
[rend2] Fix compiler warning
Browse files Browse the repository at this point in the history
// tr_shade.cpp @ 1549
// hModel is an enum so this is not a valid check null arithmetic
if (backEnd.currentEntity->e.hModel != NULL)

Thanks to @ensiform for finding it
  • Loading branch information
SomaZ committed Apr 29, 2024
1 parent 90ee6f7 commit e34bf59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/rd-rend2/tr_shade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1546,7 +1546,7 @@ static void RB_IterateStagesGeneric( shaderCommands_t *input, const VertexArrays
vertColor[3] = 0.0f;
}

if (backEnd.currentEntity->e.hModel != NULL)
if (backEnd.currentEntity->e.hModel != NULL_HANDLE)
{
model_t *model = R_GetModelByHandle(backEnd.currentEntity->e.hModel);
if (model->type != MOD_BRUSH)
Expand Down

0 comments on commit e34bf59

Please sign in to comment.