add safeties for enum math across define boundaries

This commit is contained in:
AzaezelX 2023-04-26 22:27:35 -05:00
parent 1230d0d280
commit aa02e48c8d
20 changed files with 71 additions and 71 deletions

View file

@ -326,7 +326,7 @@ void CoverPoint::render(ObjectRenderInst *ri, SceneRenderState *state, BaseMatIn
// Data for decorations.
GFXStateBlockDesc desc;
F32 height = (float)(mSize + 1) / NumSizes * 2.0f;
F32 height = (float)(mSize + 1) / (F32)NumSizes * 2.0f;
// Draw an X if we're occupied.
if(isOccupied())