Skip to content

Commit e2080d0

Browse files
Merge pull request #71 from charlesneimog/fix-ambi_roomsim_setWallAbsCoeff
fix assertion on `ambi_roomsim_setWallAbsCoeff`
2 parents 48309f1 + 594704f commit e2080d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/ambi_roomsim/ambi_roomsim.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ void ambi_roomsim_setRoomDimZ(void* const hAmbi, float newValue)
332332
void ambi_roomsim_setWallAbsCoeff(void* const hAmbi, int xyz_idx, int posNeg_idx, float new_value)
333333
{
334334
ambi_roomsim_data *pData = (ambi_roomsim_data*)(hAmbi);
335-
saf_assert(xyz_idx<4, "xyz_idx indicates each spatial axis, so cannot exceed 4");
335+
saf_assert(xyz_idx<3, "xyz_idx indicates each spatial axis, so cannot exceed 3");
336336
saf_assert(posNeg_idx==0 || posNeg_idx==1, "posNeg_idx is a bool");
337337
if(new_value!=pData->abs_wall[2*xyz_idx+posNeg_idx]){
338338
pData->abs_wall[2*xyz_idx+posNeg_idx] = new_value;

0 commit comments

Comments
 (0)