Skip to content

Commit bb6d751

Browse files
authored
Merge pull request #4477 from notimaginative/fix_fireball_lod_assertion
fix lod assertion check (it can equal the max)
2 parents f33b8d9 + ec8cb1b commit bb6d751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/fireball/fireballs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void fireball_parse_tbl()
407407
{
408408
if (fi.lod_count > 1)
409409
{
410-
Assertion(fi.lod_count < MAX_FIREBALL_LOD, "Fireball LOD (%d) greater than MAX_FIREBALL_LOD %d.", fi.lod_count, MAX_FIREBALL_LOD);
410+
Assertion(fi.lod_count <= MAX_FIREBALL_LOD, "Fireball LOD (%d) greater than MAX_FIREBALL_LOD %d.", fi.lod_count, MAX_FIREBALL_LOD);
411411
static_assert(MAX_FIREBALL_LOD < 10, "The fireball LOD naming scheme needs to be changed for LODs > 9");
412412

413413
auto lod0 = fi.lod[0].filename;

0 commit comments

Comments
 (0)